[arch-commits] Commit in bash-completion/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 16 09:16:33 UTC 2020


    Date: Saturday, May 16, 2020 @ 09:16:32
  Author: felixonmars
Revision: 383813

archrelease: copy trunk to staging-any

Added:
  bash-completion/repos/staging-any/
  bash-completion/repos/staging-any/PKGBUILD
    (from rev 383812, bash-completion/trunk/PKGBUILD)

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

Copied: bash-completion/repos/staging-any/PKGBUILD (from rev 383812, bash-completion/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 09:16:32 UTC (rev 383813)
@@ -0,0 +1,31 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=bash-completion
+pkgver=2.10
+pkgrel=2
+pkgdesc='Programmable completion for the bash shell'
+arch=(any)
+url='https://github.com/scop/bash-completion'
+license=(GPL2)
+depends=(bash)
+options=(!emptydirs !makeflags)
+source=($url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz)
+validpgpkeys=(A558062B6D5DA1347CD468D52B0AE2C1B09B07CB)
+sha256sums=('123c17998e34b937ce57bb1b111cd817bc369309e9a8047c0bcf06ead4a3ec92')
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  # bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it
+  rm "$pkgdir/etc/profile.d/bash_completion.sh"
+
+  # remove Slackware's makepkg completion
+  rm "$pkgdir/usr/share/bash-completion/completions/makepkg"
+}


More information about the arch-commits mailing list