summaryrefslogtreecommitdiffstats
path: root/abs/core/gperf
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/gperf')
-rw-r--r--abs/core/gperf/PKGBUILD33
-rw-r--r--abs/core/gperf/gperf.install12
2 files changed, 25 insertions, 20 deletions
diff --git a/abs/core/gperf/PKGBUILD b/abs/core/gperf/PKGBUILD
index b7f186f..7c3ec52 100644
--- a/abs/core/gperf/PKGBUILD
+++ b/abs/core/gperf/PKGBUILD
@@ -1,25 +1,34 @@
-#$Id: PKGBUILD 37370 2009-05-01 06:37:35Z eric $
-#Maintainer: Jan de Groot <jgc@archlinux.org>
+# $Id: PKGBUILD 140657 2011-10-17 19:09:57Z andrea $
+# Maintainer:
+# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=gperf
pkgver=3.0.4
-pkgrel=1
-pkgdesc="Perfect hash function generator."
+pkgrel=4
+pkgdesc="Perfect hash function generator"
arch=('x86_64' 'i686')
url="http://www.gnu.org/software/gperf/"
license=('GPL3')
depends=('gcc-libs' 'texinfo')
install=gperf.install
-source=(ftp://ftp.gnu.org/gnu/gperf/${pkgname}-${pkgver}.tar.gz)
-md5sums=('c1f1db32fb6598d6a93e6e88796a8632')
+source=("http://ftp.gnu.org/pub/gnu/gperf/${pkgname}-${pkgver}.tar.gz"{,.sig})
+sha1sums=('e32d4aff8f0c730c9a56554377b2c6d82d0951b8'
+ '85b8c44964a70a63d751afa5906796a0417e64ce')
+options=('!makeflags')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr || return 1
- make || return 1
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ ./configure --prefix=/usr \
+ --docdir=/usr/share/gperf/doc/
+ make
}
+
+check() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make check
+}
+
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install || return 1
- gzip ${pkgdir}/usr/share/info/gperf.info
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
}
diff --git a/abs/core/gperf/gperf.install b/abs/core/gperf/gperf.install
index 1c20e2f..90ac2a8 100644
--- a/abs/core/gperf/gperf.install
+++ b/abs/core/gperf/gperf.install
@@ -1,11 +1,9 @@
-infodir=/usr/share/info
-filelist=(gperf.info.gz)
+infodir=usr/share/info
+file=gperf.info.gz
post_install() {
[ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
- done
+ install-info $infodir/$file $infodir/dir 2> /dev/null
}
post_upgrade() {
@@ -14,7 +12,5 @@ post_upgrade() {
pre_remove() {
[ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info --delete $infodir/$file $infodir/dir 2> /dev/null
- done
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
}