updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / cproto / PKGBUILD
blobb98f8ff419f9e01c1a87597194ee62222f1ec80e
1 # Contributor: bocke <bocke@mycity.rs>
2 # Contributor: MIZUNO J.Y. <http://p.mjy.name/>
4 pkgname=cproto
5 pkgver="4.7j"
6 pkgrel=1
7 pkgdesc="Generates function prototypes from C source"
8 arch=('i686' 'x86_64')
9 url="http://invisible-island.net/cproto/cproto.html"
10 license=('custom:public domain')
11 source=('ftp://invisible-island.net/cproto/cproto-4.7j.tgz')
12 md5sums=('5681de39a2761b1519b7eb1d1e6706c2')
14 build() {
15         cd "$srcdir/$pkgname-$pkgver"
16         ./configure --prefix=/usr
17         make
18         make DESTDIR="$pkgdir" install
20         # Moving man pages to appropirate location
21         install -d -m755 "$pkgdir/usr/share"
22         mv "${pkgdir}/usr/man" "${pkgdir}/usr/share"
24         # Installing docs
25         install -d -m755 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
26         install -m644 "$srcdir/$pkgname-$pkgver/AUTHORS" \
27                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
28         install -m644 "$srcdir/$pkgname-$pkgver/CHANGES" \
29                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
30         install -m644 "$srcdir/$pkgname-$pkgver/MANIFEST" \
31                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
32         install -m644 "$srcdir/$pkgname-$pkgver/README" \
33                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
35