updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cdecl / PKGBUILD
blobb2bc3ee21322b8c91de51c300e9dbbf1c75fbcd5
1 # Contributor: Nicolas Martyanoff <khaelin@gmail.com>
2 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
3 pkgname=cdecl
4 pkgver=2.5
5 pkgrel=2
6 pkgdesc="Translation between C declarations and pseudo-English"
7 url="http://www.ibiblio.org/pub/linux/devel/lang/c/"
8 license=('Public Domain')
9 source=(http://www.ibiblio.org/pub/linux/devel/lang/c/$pkgname-$pkgver.tar.gz
10                   getopt.patch
11                   makefile.patch
12                   fix-getline.patch)
13 md5sums=('29895dab52e85b2474a59449e07b7996'
14          'bd0889f5c6142b46f667700ebf0eda02'
15          '3a2a766cdc3fdc714ba35655d4d836a9'
16          'df27d358e2e603609adf3e6165b74afe')
17 arch=('i686' 'x86_64')
18 depends=('readline')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
23   patch -Np1 -i "$srcdir/getopt.patch"
24   patch -Np1 -i "$srcdir/makefile.patch"
25   patch -Np1 -i "$srcdir/fix-getline.patch"
27   make || return 1
29   mkdir -p "$pkgdir/usr/bin"
30   mkdir -p "$pkgdir/usr/share/man/man1"
31   make PREFIX="$pkgdir/usr" install