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

Jelle van der Waa jelle at gemini.archlinux.org
Thu Dec 16 10:40:29 UTC 2021


    Date: Thursday, December 16, 2021 @ 10:40:29
  Author: jelle
Revision: 1074249

archrelease: copy trunk to community-x86_64

Added:
  librepo/repos/community-x86_64/
  librepo/repos/community-x86_64/PKGBUILD
    (from rev 1074248, librepo/trunk/PKGBUILD)

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

Copied: librepo/repos/community-x86_64/PKGBUILD (from rev 1074248, librepo/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-12-16 10:40:29 UTC (rev 1074249)
@@ -0,0 +1,45 @@
+# Contributor: larchunix
+# 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=('GPL')
+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