[arch-commits] Commit in dnf/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Dec 20 09:41:53 UTC 2021
Date: Monday, December 20, 2021 @ 09:41:53
Author: jelle
Revision: 1079720
archrelease: copy trunk to community-any
Added:
dnf/repos/community-any/
dnf/repos/community-any/PKGBUILD
(from rev 1079719, dnf/trunk/PKGBUILD)
----------+
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
Copied: dnf/repos/community-any/PKGBUILD (from rev 1079719, dnf/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-12-20 09:41:53 UTC (rev 1079720)
@@ -0,0 +1,67 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=dnf
+pkgver=4.10.0
+pkgrel=1
+pkgdesc="Package manager forked from Yum, using libsolv as a dependency resolver"
+arch=('any')
+url="https://github.com/rpm-software-management/$pkgname"
+license=('GPL2')
+depends=('libdnf' 'libcomps'
+ 'python' 'python-gpgme' 'rpm-tools')
+makedepends=('bash-completion' 'cmake' 'python-sphinx')
+optdepends=('unbound: for gpgkey_dns_verification option')
+backup=("etc/$pkgname/automatic.conf"
+ "etc/$pkgname/$pkgname.conf"
+ "etc/$pkgname/aliases.d/zypper.conf"
+ "etc/$pkgname/protected.d/$pkgname.conf"
+ "etc/$pkgname/protected.d/yum.conf"
+ "etc/libreport/events.d/collect_$pkgname.conf"
+ "etc/logrotate.d/$pkgname")
+options=('!emptydirs')
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('7c8d18b61cfe18104d066abbdd5a420067313ba93734120666f89695a113eba8')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # sphinx-build-3 does not exist on Arch Linux,
+ # use sphinx-build instead
+ sed -e 's/sphinx-build-3/sphinx-build/' \
+ -i doc/CMakeLists.txt
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPYTHON_DESIRED=3
+
+ make -C build
+ make -C build doc-man
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ # Fails because Arch Linux does not support C.UTF-8 locale
+ make -n -C build ARGS="--output-on-failure" test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make -C build DESTDIR="$pkgdir/" install
+
+ install -Dp -m644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
+
+ rm "$pkgdir/usr/share/man/man8/yum.8" \
+ "$pkgdir/usr/share/man/man5/yum.conf.5" \
+ "$pkgdir/usr/share/man/man1/yum-aliases.1" \
+ "$pkgdir/usr/share/man/man8/yum-shell.8"
+ ln -s $pkgname-3 "$pkgdir/usr/bin/$pkgname"
+ ln -s $pkgname-automatic-3 "$pkgdir/usr/bin/$pkgname-automatic"
+
+ rm "$pkgdir/etc/$pkgname/$pkgname-strict.conf"
+}
More information about the arch-commits
mailing list