[arch-commits] Commit in (4 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Thu Dec 2 12:07:57 UTC 2021
Date: Thursday, December 2, 2021 @ 12:07:56
Author: jelle
Revision: 1061881
Dep of dnf
Added:
libcomps/
libcomps/repos/
libcomps/trunk/
libcomps/trunk/PKGBUILD
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Added: libcomps/trunk/PKGBUILD
===================================================================
--- libcomps/trunk/PKGBUILD (rev 0)
+++ libcomps/trunk/PKGBUILD 2021-12-02 12:07:56 UTC (rev 1061881)
@@ -0,0 +1,50 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=libcomps
+pkgver=0.1.18
+pkgrel=1
+pkgdesc="Comps XML file manipulation library"
+arch=('x86_64')
+url="https://github.com/rpm-software-management/$pkgname"
+license=('GPL2')
+depends=('expat' 'libxml2' 'zlib')
+makedepends=('cmake' 'python' 'python-setuptools' 'doxygen' 'python-sphinx')
+checkdepends=('check')
+optdepends=('python: for python bindings')
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('02f8aa83dfd19beb7ce250b39818017a6eda7c3984caf8efbd2fc0c70d97bc9a')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ cmake -B build -S libcomps \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG' \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -Wno-dev
+
+ make -C build
+
+ make -C build docs
+ make -C build pydocs
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ make -C build test
+ make -C build pytest
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make -C build DESTDIR="$pkgdir/" install
+
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"/{doxygen,sphinx}
+ cp -Rp build/docs/libcomps-doc/html/ "$pkgdir/usr/share/doc/$pkgname/doxygen/"
+ cp -Rp build/src/python/docs/html/ "$pkgdir/usr/share/doc/$pkgname/sphinx/"
+
+ install -Dp -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+}
More information about the arch-commits
mailing list