summaryrefslogtreecommitdiff
path: root/extra/gperf/PKGBUILD
blob: 446f75b85a00d8cf29b413b8d5fa2d7eb032ec97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $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=4.2
pkgdesc="Perfect hash function generator"
arch=('x86_64' 'i686' 'mips64el')
url="http://www.gnu.org/software/gperf/"
license=('GPL3')
depends=('gcc-libs' 'texinfo')
install=gperf.install
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 \
    --docdir=/usr/share/gperf/doc/
  make
}

check() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make check
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}