updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / funny-manpages / PKGBUILD
blob9ebd72e7d82b3a00300d4f455de6fce4113567b8
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: StaCk <proc.null at gmail dot com>
4 pkgname=funny-manpages
5 pkgver=1.3
6 pkgrel=4
7 pkgdesc="A set of miscellaneous humorous manpages (don't take them too seriously!)."
8 arch=('i686' 'x86_64')
9 url="http://debian.org/"
10 license=('custom')
11 source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver.orig.tar.gz 
12         http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver-5.diff.gz)
13 md5sums=('bed1deef82218d42fb230a2176a11ed4'
14          'd7bccce54fb400de443fe6ff15bba940')
16 build() {
17     # Apply the patch
18     cd $srcdir
19     patch -p0 -i ${pkgname}_$pkgver-5.diff || return 1
20     
21     # Rename the manpages to man6
22     cd $pkgname-$pkgver.orig
23     for f in *.[0-57-9]fun ; do 
24         mv $f ${f/.?fun/.6fun}
25     done
26     install -d $pkgdir/usr/share/man/man6/
27     install -m 644 *.6fun $pkgdir/usr/share/man/man6/
28     
29     # Install the license
30     install -Dm 644 debian/copyright $pkgdir/usr/share/licenses/$pkgname/copyright