diff options
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 3 | ||||
-rw-r--r-- | dist/archlinux/stable/xpybar.install | 20 |
2 files changed, 22 insertions, 1 deletions
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 +} + |