diff options
Diffstat (limited to 'dist/archlinux/stable')
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 8 | ||||
-rw-r--r-- | dist/archlinux/stable/exec-as.install | 20 |
2 files changed, 24 insertions, 4 deletions
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD index 649b50e..25d2b7e 100644 --- a/dist/archlinux/stable/PKGBUILD +++ b/dist/archlinux/stable/PKGBUILD @@ -1,17 +1,17 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=exec-as -pkgver=1 +pkgver=1.1 pkgrel=1 pkgdesc="A command that lets you start another command with any argv[0]" arch=(i686 x86_64) url="https://github.com/maandree/exec-as" license=('GPL3') depends=(glibc) -makedepends=(make coreutils gcc glibc) -#install=exec-as.install +makedepends=(make coreutils gcc glibc texinfo) +install=exec-as.install source=($url/archive/$pkgver.tar.gz) -sha256sums=(7327f390331a02ea4b6b09d3ae2f379a70249a8741eb20a1c6a94ea6c512ed2d) +sha256sums=(7dd73559c42cdb047dd74d735642f0a4f39790b16d44f23841935e69da926f4d) build() { diff --git a/dist/archlinux/stable/exec-as.install b/dist/archlinux/stable/exec-as.install new file mode 100644 index 0000000..e25e4f0 --- /dev/null +++ b/dist/archlinux/stable/exec-as.install @@ -0,0 +1,20 @@ +_file="exec-as" + +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 +} + |