summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2015-11-30 03:57:30 +0100
committerMattias Andrée2015-11-30 03:57:30 +0100
commit2cf45e1f0651540efab9fae721674a3172b15eeb (patch)
treec592d094d41ea29c17f15589f77bc609abfbab1f
parent7a8f9e2ec6f5aeefc77a30a356d9eeaa56ae7df5 (diff)
downloadaur-2cf45e1f0651540efab9fae721674a3172b15eeb.tar.gz
Update package release to 2.2-2
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
-rw-r--r--mongoclock.install20
3 files changed, 26 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bbe3a03445db..9371222ba24d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = mongoclock
pkgdesc = Just a humongous clock for the terminal
pkgver = 2.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/maandree/mongoclock
+ install = mongoclock.install
arch = any
license = GPL3
makedepends = linux-api-headers
makedepends = general-preprocessor
+ makedepends = texinfo
depends = glibc
depends = linux
source = https://github.com/maandree/mongoclock/archive/2.2.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index b213a6073279..b77c0ed808c4 100644
--- a/PKGBUILD
+++ b/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/mongoclock.install b/mongoclock.install
new file mode 100644
index 000000000000..e9a601acbc5c
--- /dev/null
+++ b/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
+}
+