From 77f08b04332e2d2046f279c5b7f7b11713a56d6e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 11 Oct 2014 22:32:24 +0200 Subject: update dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .gitignore | 1 + dist/archlinux/stable/PKGBUILD | 11 ++++++----- dist/archlinux/stable/auto-auto-complete.install | 20 ++++++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 dist/archlinux/stable/auto-auto-complete.install 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 +} + -- cgit v1.2.3-70-g09d2