aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--dist/archlinux/stable/PKGBUILD11
-rw-r--r--dist/archlinux/stable/auto-auto-complete.install20
3 files changed, 27 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 699ce84..2513ac5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ obj/
!.git*
/dist/*/*/*
!/dist/archlinux/*/PKGBUILD
+!/dist/archlinux/*/auto-auto-complete.install
*~
*.swp
*.swo
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
index da7b433..5abae8f 100644
--- a/dist/archlinux/stable/PKGBUILD
+++ b/dist/archlinux/stable/PKGBUILD
@@ -1,25 +1,26 @@
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
pkgname=auto-auto-complete
-pkgver=3.1
+pkgver=4
pkgrel=1
pkgdesc='Autogenerate shell auto-completion scripts'
arch=('any')
url='https://github.com/maandree/auto-auto-complete'
license=('GPL3')
depends=('python3')
-makedepends=('make' 'sed' 'coreutils')
+makedepends=('make' 'sed' 'coreutils' 'python3' 'texinfo')
+install=auto-auto-complete.install
source=(https://github.com/maandree/auto-auto-complete/archive/$pkgver.tar.gz)
-sha256sums=(ed9ac5610debd6dde96201109f5fddb051e6d8140d172c1dece707f47f82033c)
+sha256sums=(0cc68e4a49a0168747597e7ff8bd58352a3747058097a69cec94f43fe67de0b3)
build() {
- cd auto-auto-complete-$pkgver
+ cd "auto-auto-complete-${pkgver}"
make
}
package() {
- cd auto-auto-complete-$pkgver
+ cd "auto-auto-complete-${pkgver}"
make DESTDIR="$pkgdir" install
}
diff --git a/dist/archlinux/stable/auto-auto-complete.install b/dist/archlinux/stable/auto-auto-complete.install
new file mode 100644
index 0000000..6744da8
--- /dev/null
+++ b/dist/archlinux/stable/auto-auto-complete.install
@@ -0,0 +1,20 @@
+_file="auto-auto-complete"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+