updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / byacc-noconflict / PKGBUILD
blob36ca714a90e0bdcebd7ffb07141a4a52bffe5ecb
1 # Maintainer: Christian Neukirchen <chneukirchen@gmail.com>
2 # Maintainer of byacc: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 # Contributor: ecst <elecst 4t gmail d0t com>
4 # Contributor: Abel Stern <abel.stern AT gmail.com>
5 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
7 pkgname=byacc-noconflict
8 _pkgname=byacc
9 pkgver=20110908
10 pkgrel=1
11 pkgdesc="Non-conflicting version of byacc not providing bison/yacc"
12 arch=('i686' 'x86_64')
13 url="http://invisible-island.net/byacc/"
14 license=('custom')
15 depends=('glibc')
16 source=(ftp://invisible-island.net/$_pkgname/$_pkgname-$pkgver.tgz
17         ftp://invisible-island.net/$_pkgname/$_pkgname-$pkgver.tgz.asc)
18 md5sums=('5665ee1f2ca482d57eef9591a2fe4768'
19          'ea062f0f364f281e0a1ebb36d1e1906e')
21 build() {
22   cd ${srcdir}/$_pkgname-$pkgver
24   ./configure --prefix=/usr --mandir=/usr/share/man
25   make
28 package() {
29   cd ${srcdir}/$_pkgname-$pkgver
30   make DESTDIR=${pkgdir} install
32   # License
33   sed -n "/is distributed/,/distributed freely/p" README > COPYING
34   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/COPYING
36   # Rename
37   cd ${pkgdir}/usr/bin
38   mv yacc byacc
39   cd ${pkgdir}/usr/share/man/man1
40   mv yacc.1 byacc.1