From b2aa1e95ea1f1c9c6cb2731c48283f76021a25a5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Nov 2015 04:04:20 +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 | 3 ++- dist/archlinux/stable/xpybar.install | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 dist/archlinux/stable/xpybar.install diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD index ecf0eeb..5686b9c 100644 --- a/dist/archlinux/stable/PKGBUILD +++ b/dist/archlinux/stable/PKGBUILD @@ -2,7 +2,7 @@ pkgname=xpybar pkgver=1.13 -pkgrel=1 +pkgrel=2 pkgdesc="A highly extensible minimalistic dock panel configured in Python 3" arch=(any) url="https://github.com/maandree/xpybar" @@ -23,6 +23,7 @@ optdepends=("linux: most of the monitors require Linux's procfs or sysfs" "file: for image support" "librsvg: for image support") makedepends=(make coreutils sed zip auto-auto-complete texinfo) +install=xpybar.install source=($url/archive/$pkgver.tar.gz) sha256sums=(09357b9aa426cab2f9a465c0e5f6ed18f7a83212e8bf56af1773f27a24aec9e7) diff --git a/dist/archlinux/stable/xpybar.install b/dist/archlinux/stable/xpybar.install new file mode 100644 index 0000000..ab45041 --- /dev/null +++ b/dist/archlinux/stable/xpybar.install @@ -0,0 +1,20 @@ +_file="xpybar" + +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