[arch-commits] Commit in (librepo librepo/repos librepo/trunk librepo/trunk/PKGBUILD)

Jelle van der Waa jelle at gemini.archlinux.org
Thu Dec 2 11:32:41 UTC 2021


    Date: Thursday, December 2, 2021 @ 11:32:40
  Author: jelle
Revision: 1061588

For python-dnf

Added:
  librepo/
  librepo/repos/
  librepo/trunk/
  librepo/trunk/PKGBUILD

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

Added: librepo/trunk/PKGBUILD
===================================================================
--- librepo/trunk/PKGBUILD	                        (rev 0)
+++ librepo/trunk/PKGBUILD	2021-12-02 11:32:40 UTC (rev 1061588)
@@ -0,0 +1,44 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=librepo
+pkgver=1.14.2
+pkgrel=1
+pkgdesc="Repodata downloading library"
+arch=('x86_64')
+url="https://github.com/rpm-software-management/$pkgname"
+license=('LGPL2.1')
+depends=('curl' 'glib2' 'gpgme' 'libxml2' 'openssl')
+makedepends=('cmake' 'python')
+checkdepends=('check' 'python-gpgme' 'python-pyxattr' 'python-requests')
+optdepends=('python: for python bindings')
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('436ead59dd22f45e87b4c0a408e100e0a159f825128b875ad33ed672204023be')
+
+build() {
+	cd "$pkgname-$pkgver"
+
+	cmake -B build \
+	      -DCMAKE_BUILD_TYPE=None \
+	      -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG' \
+	      -DCMAKE_INSTALL_PREFIX=/usr \
+	      -DCMAKE_INSTALL_LIBDIR=lib \
+	      -DENABLE_DOCS=OFF \
+	      -DENABLE_PYTHON=ON \
+		  -DWITH_ZCHUNK=OFF
+
+	make -C build
+}
+
+check() {
+	cd "$pkgname-$pkgver"
+
+	make -C build ARGS="-V" test
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+
+	make -C build DESTDIR="$pkgdir/" install
+
+	install -Dp -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+}



More information about the arch-commits mailing list