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

Jelle van der Waa jelle at gemini.archlinux.org
Thu Dec 16 13:35:47 UTC 2021


    Date: Thursday, December 16, 2021 @ 13:35:47
  Author: jelle
Revision: 1074451

archrelease: copy trunk to community-x86_64

Added:
  libdnf/repos/community-x86_64/
  libdnf/repos/community-x86_64/PKGBUILD
    (from rev 1074450, libdnf/trunk/PKGBUILD)

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

Copied: libdnf/repos/community-x86_64/PKGBUILD (from rev 1074450, libdnf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-12-16 13:35:47 UTC (rev 1074451)
@@ -0,0 +1,55 @@
+# Contributor: larchunix
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=libdnf
+pkgver=0.65.0
+pkgrel=1
+pkgdesc="Library providing simplified C and Python API to libsolv"
+arch=('x86_64')
+url="https://github.com/rpm-software-management/$pkgname"
+license=('GPL')
+depends=('glib2' 'gpgme' 'json-c' 'libmodulemd' 'librepo' 'libsolv'
+         'libutil-linux' 'openssl' 'rpm-tools' 'sqlite' 'zlib')
+makedepends=('cmake' 'gtk-doc' 'python' 'python-sphinx' 'swig')
+checkdepends=('check' 'cppunit')
+optdepends=('python: for python bindings')
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('b615a6f7e1d1d82c928d2c79b36242a29d04cd28e267a5e8a6996435d9f97997')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # TODO: libsolv installs cmake in something where libdnf can't find it
+  cp -p /usr/share/cmake/Modules/FindLibSolv.cmake cmake/modules/
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  cmake -B build \
+        -DCMAKE_BUILD_TYPE=None \
+        -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG' \
+        -DCMAKE_CXX_FLAGS_RELEASE='-DNDEBUG' \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -DPYTHON_DESIRED=3 \
+        -DWITH_ZCHUNK=OFF \
+        -Wno-dev
+
+  make -C build VERBOSE=1
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  # tests fail
+  # (/build/libdnf/src/libdnf-0.65.0/build/tests/libdnf/test_libdnf_main:5860): libdnf-WARNING **: 12:55:05.175: Can't read plugin directory "/usr/lib/libdnf/plugins/": No such file or directory
+  # error: cannot open Packages database in /var/lib/rpm
+  # make -C build test ARGS="--output-on-failure"
+}
+
+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