diff options
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 5 | ||||
-rw-r--r-- | dist/archlinux/stable/libkeccak.install | 20 |
2 files changed, 23 insertions, 2 deletions
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD index 841d54d..10a3cb9 100644 --- a/dist/archlinux/stable/PKGBUILD +++ b/dist/archlinux/stable/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=libkeccak -pkgver=1.1 +pkgver=1.2 pkgrel=1 pkgdesc="Keccak-family hashing library" arch=(i686 x86_64) @@ -9,7 +9,8 @@ url="https://github.com/maandree/libkeccak" license=('AGPL3') depends=(glibc) checkdepends=(glibc valgrind make coreutils) -makedepends=(glibc gcc make coreutils binutils) +makedepends=(glibc gcc make coreutils binutils texinfo) +install=libkeccak.install source=($url/archive/$pkgver.tar.gz) sha256sums=(f8f7382bd2b05a539d29f718a8f2d3b922a852dd588c786d9d841cc8f1b3bb2b) diff --git a/dist/archlinux/stable/libkeccak.install b/dist/archlinux/stable/libkeccak.install new file mode 100644 index 0000000..aa88d6d --- /dev/null +++ b/dist/archlinux/stable/libkeccak.install @@ -0,0 +1,20 @@ +_file="libkeccak" + +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 +} + |