From 53d7927147ec1d7d267f8074ea8d30051cb284c5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Nov 2015 04:10:45 +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 --- .gitignore | 1 + dist/archlinux/stable/PKGBUILD | 5 +++-- dist/archlinux/stable/adjbacklight.install | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 dist/archlinux/stable/adjbacklight.install diff --git a/.gitignore b/.gitignore index 202cdf6..7df2bd8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ obj/ /dist/*/*/* !/dist/*/*/PKGBUILD +!/dist/*/*/adjbacklight.install *.gz *.xz diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD index 83144dc..db8faf1 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=adjbacklight -pkgver=7.3.1 +pkgver=7.3.2 pkgrel=1 pkgdesc="Convenient method for adjusting the backlight on your portable computer" arch=('x86_64' 'i686') @@ -9,8 +9,9 @@ url="https://github.com/maandree/adjbacklight" license=('GPL3') depends=('linux') makedepends=('texinfo' 'auto-auto-complete') +install=adjbacklight.install source=(https://github.com/maandree/adjbacklight/archive/${pkgver}.tar.gz) -sha256sums=(bc8d5e1d0bed99c63e05a6d36a6816b91ebf373cf11ba6a8fb8533d3acdbe478) +sha256sums=(75b7760a2cda157b0a27d3d4290c73e6b4219d9b08a3b6f466e8486aa6be7d0a) build() { diff --git a/dist/archlinux/stable/adjbacklight.install b/dist/archlinux/stable/adjbacklight.install new file mode 100644 index 0000000..ab4d945 --- /dev/null +++ b/dist/archlinux/stable/adjbacklight.install @@ -0,0 +1,20 @@ +_file="adjbacklight" + +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