From a5fb1910732fca19dd478203ac21be7e6c5d7c3e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 05:33:53 +0100 Subject: update dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dist/archlinux/stable/PKGBUILD | 8 ++++---- dist/archlinux/stable/exec-as.install | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 dist/archlinux/stable/exec-as.install (limited to 'dist') 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 +} + -- cgit v1.2.3-70-g09d2