updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / asr-manpages / PKGBUILD
blob526a10a6cb1a5a12e66ce41cc435769d5291bc2d
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: StaCk <proc.null at gmail dot com>
4 pkgname=asr-manpages
5 pkgver=1.3
6 pkgrel=4
7 pkgdesc="A set of humorous manual pages developed on alt.sysadmin.recovery"
8 arch=('any')
9 url="http://debian.org/"
10 license=('custom')
11 source=(http://ftp.debian.org/debian/pool/main/a/$pkgname/${pkgname}_$pkgver.orig.tar.gz
12         http://ftp.debian.org/debian/pool/main/a/$pkgname/${pkgname}_$pkgver-6.diff.gz)
13 md5sums=('ee77b619e01a2d841a45469708d90631'
14          '9608fb9ee121a278bf4cac5fc6dae267')
16 build() {
17     cd $srcdir
19     # Apply the patch
20     patch -p0 -i ${pkgname}_$pkgver-6.diff || return 1
22     # Rename the manpages to man6 and deploy
23     install -d $pkgdir/usr/share/man/man6/
24     cd $pkgname-$pkgver.orig
25     for f in *.[0-57-9]fun ; do 
26         mv $f ${f/.?fun/.6fun}
27     done
28     install -m 644 *.6fun $pkgdir/usr/share/man/man6/
30     # Install the license
31     install -Dm 644 debian/copyright $pkgdir/usr/share/licenses/$pkgname/copyright