Date: Friday, April 7, 2023 @ 06:27:21
  Author: felixonmars
Revision: 1440712

archrelease: copy trunk to community-staging-x86_64

Added:
  libcomps/repos/community-staging-x86_64/
  libcomps/repos/community-staging-x86_64/PKGBUILD
    (from rev 1440711, libcomps/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: libcomps/repos/community-staging-x86_64/PKGBUILD (from rev 1440711, 
libcomps/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-07 06:27:21 UTC (rev 1440712)
@@ -0,0 +1,52 @@
+# Contributor: larchunix
+# Maintainer: Jelle van der Waa <[email protected]>
+
+pkgname=libcomps
+pkgver=0.1.19
+pkgrel=2
+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=('19433751eecf5ceee4b85c9244496d9d32af78af6fc17db697b39501f8308f94')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  cmake -B build -S libcomps \
+        -DCMAKE_BUILD_TYPE=None \
+        -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/"
+  rm -r build/src/python/docs/html/.doctrees
+  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"
+}

Reply via email to