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

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


    Date: Thursday, December 2, 2021 @ 15:16:29
  Author: jelle
Revision: 1061950

style fixes

Modified:
  dnf/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++++++---------------------------
 1 file changed, 27 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 15:16:27 UTC (rev 1061949)
+++ PKGBUILD	2021-12-02 15:16:29 UTC (rev 1061950)
@@ -7,9 +7,9 @@
 arch=('any')
 url="https://github.com/rpm-software-management/$pkgname"
 license=('GPL2')
-depends=('libdnf>=0.65.0' 'libcomps>=0.1.8'
-         'python' 'python-gpgme' 'rpm-tools>=4.14.0')
-makedepends=('bash-completion' 'cmake>=3.13' 'python-sphinx')
+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"
@@ -23,45 +23,45 @@
 sha256sums=('7c8d18b61cfe18104d066abbdd5a420067313ba93734120666f89695a113eba8')
 
 prepare() {
-	cd "$pkgname-$pkgver"
+  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
+  # 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"
+  cd "$pkgname-$pkgver"
 
-	cmake -B build \
-	      -DCMAKE_INSTALL_PREFIX=/usr \
-	      -DPYTHON_DESIRED=3
+  cmake -B build \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DPYTHON_DESIRED=3
 
-	make -C build
-	make -C build doc-man
+  make -C build
+  make -C build doc-man
 }
 
 check() {
-	cd "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
 
-	# Fails because Arch Linux does not support C.UTF-8 locale
-	make -n -C build ARGS="--output-on-failure" test
+  # Fails because Arch Linux does not support C.UTF-8 locale
+  make -n -C build ARGS="--output-on-failure" test
 }
 
 package() {
-	cd "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
 
-	make -C build DESTDIR="$pkgdir/" install
+  make -C build DESTDIR="$pkgdir/" install
 
-	install -Dp -m644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
+  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/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"
+  rm "$pkgdir/etc/$pkgname/$pkgname-strict.conf"
 }



More information about the arch-commits mailing list