diff options
author | Tilman Blumenbach | 2016-11-07 17:03:40 +0100 |
---|---|---|
committer | Tilman Blumenbach | 2016-11-07 17:03:40 +0100 |
commit | 54c7ca43079cdeeb5137b8c491ce7f11ee336672 (patch) | |
tree | 982196de4c0f62013545a8bf6fbfeef81d980f93 | |
parent | f7bbbe6ab2ebb8bdf4667d969e3d6293c2736632 (diff) | |
download | aur-54c7ca43079cdeeb5137b8c491ce7f11ee336672.tar.gz |
Work around pkgver()-related bug in pacaur.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -1,12 +1,13 @@ pkgbase = fortune-mod-bofh-excuses pkgdesc = BOFH excuses fortune cookie files pkgver = 20121125.190600 - pkgrel = 2 + pkgrel = 3 url = http://www.cs.wisc.edu/~ballard/bofh/ arch = any groups = fortune-mods license = Public domain makedepends = curl + makedepends = pkgbuild-introspection depends = fortune-mod pkgname = fortune-mod-bofh-excuses @@ -3,12 +3,12 @@ pkgname='fortune-mod-bofh-excuses' pkgver=20121125.190600 -pkgrel=2 +pkgrel=3 pkgdesc='BOFH excuses fortune cookie files' arch=('any') url='http://www.cs.wisc.edu/~ballard/bofh/' depends=('fortune-mod') -makedepends=('curl') +makedepends=('curl' 'pkgbuild-introspection') groups=('fortune-mods') license=('Public domain') @@ -57,6 +57,12 @@ build() package() { + # XXX: Super ugly hotfix for pacaur apparently generating .SRCINFO _before_ pkgver() is run + # (therefore, it may contain invalid information). + if [ -f "${startdir}/.SRCINFO" ]; then + mksrcinfo -o "${startdir}/.SRCINFO" "${startdir}/PKGBUILD" + fi + cd "${srcdir}" install -D -m644 bofh-excuses "${pkgdir}/usr/share/fortune/bofh-excuses" |