aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/archlinux/stable/.gitignore4
-rw-r--r--dist/archlinux/stable/PKGBUILD5
-rw-r--r--dist/archlinux/stable/mongoclock.install20
3 files changed, 27 insertions, 2 deletions
diff --git a/dist/archlinux/stable/.gitignore b/dist/archlinux/stable/.gitignore
new file mode 100644
index 0000000..81fed16
--- /dev/null
+++ b/dist/archlinux/stable/.gitignore
@@ -0,0 +1,4 @@
+*
+!/PKGBUILD
+!/mongoclock.install
+!/.gitignore
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
index b213a60..b77c0ed 100644
--- a/dist/archlinux/stable/PKGBUILD
+++ b/dist/archlinux/stable/PKGBUILD
@@ -2,13 +2,14 @@
pkgname=mongoclock
pkgver=2.2
-pkgrel=1
+pkgrel=2
pkgdesc='Just a humongous clock for the terminal'
arch=(any)
url='https://github.com/maandree/mongoclock'
license=('GPL3')
depends=(glibc linux)
-makedepends=(linux-api-headers general-preprocessor)
+makedepends=(linux-api-headers general-preprocessor texinfo)
+install=mongoclock.install
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=(ae2298905a2f729679fddaeb732183b95607438af62dca02bdf5ae0a1b29e950)
diff --git a/dist/archlinux/stable/mongoclock.install b/dist/archlinux/stable/mongoclock.install
new file mode 100644
index 0000000..e9a601a
--- /dev/null
+++ b/dist/archlinux/stable/mongoclock.install
@@ -0,0 +1,20 @@
+_file="mongoclock"
+
+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
+}
+