1 # Contributor: larchunix
2 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
7 pkgdesc="Comps XML file manipulation library"
9 url="https://github.com/rpm-software-management/$pkgname"
11 depends=('expat' 'libxml2' 'zlib')
12 makedepends=('cmake' 'python' 'python-setuptools' 'doxygen' 'python-sphinx')
13 checkdepends=('check')
14 optdepends=('python: for python bindings')
15 source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
16 sha256sums=('19433751eecf5ceee4b85c9244496d9d32af78af6fc17db697b39501f8308f94')
21 cmake -B build -S libcomps \
22 -DCMAKE_BUILD_TYPE=None \
23 -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG' \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DCMAKE_INSTALL_LIBDIR=lib \
44 make -C build DESTDIR="$pkgdir/" install
46 mkdir -p "$pkgdir/usr/share/doc/$pkgname"/{doxygen,sphinx}
47 cp -Rp build/docs/libcomps-doc/html/ "$pkgdir/usr/share/doc/$pkgname/doxygen/"
48 rm -r build/src/python/docs/html/.doctrees
49 cp -Rp build/src/python/docs/html/ "$pkgdir/usr/share/doc/$pkgname/sphinx/"
51 install -Dp -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"