summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12018-03-25 20:32:29 +0800
committerChocobo12018-03-25 20:43:51 +0800
commit8f128aed6586c3f1dd09834f1d0488703f0d0fb9 (patch)
treecaee524602957c95b5188517423a7cb9794ce717
downloadaur-8f128aed6586c3f1dd09834f1d0488703f0d0fb9.tar.gz
newpkg: bash-completion-git 2.8.r20.gd664aebf-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD46
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4212d5db84e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = bash-completion-git
+ pkgdesc = Programmable completion functions for bash
+ pkgver = 2.8.r20.gd664aebf
+ pkgrel = 1
+ url = https://github.com/scop/bash-completion
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = bash
+ provides = bash-completion
+ conflicts = bash-completion
+ options = !emptydirs
+ source = git+https://github.com/scop/bash-completion.git
+ sha256sums = SKIP
+
+pkgname = bash-completion-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c5d807c4cf6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=bash-completion-git
+pkgver=2.8.r20.gd664aebf
+pkgrel=1
+pkgdesc="Programmable completion functions for bash"
+arch=('any')
+url="https://github.com/scop/bash-completion"
+license=('GPL2')
+depends=('bash')
+makedepends=('git')
+provides=('bash-completion')
+conflicts=('bash-completion')
+options=(!emptydirs)
+source=("git+https://github.com/scop/bash-completion.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "bash-completion"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "bash-completion"
+
+ autoreconf -fi
+ ./configure --prefix="/usr" --sysconfdir="/etc"
+ make
+}
+
+check() {
+ cd "bash-completion"
+
+ make check
+}
+
+package() {
+ cd "bash-completion"
+
+ make DESTDIR="$pkgdir" install
+
+ rm "$pkgdir/etc/profile.d/bash_completion.sh"
+ rm "$pkgdir/usr/share/bash-completion/completions/makepkg"
+}