diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2694f45a2dfd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr> +# Contributor: Arkham <arkham at archlinux dot us> +# Contributor: StaCk <proc.null at gmail dot com> + +pkgname=funny-manpages +pkgver=1.3 +pkgrel=5 +pkgdesc="A set of miscellaneous humorous manpages (don't take them too seriously!)." +arch=('any') +url="http://debian.org/" +license=('custom') +source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver.orig.tar.gz + http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver-5.diff.gz) +md5sums=('bed1deef82218d42fb230a2176a11ed4' + 'd7bccce54fb400de443fe6ff15bba940') + +build() { + # Apply the patch + cd $srcdir + patch -p0 -i ${pkgname}_$pkgver-5.diff || return 1 + + # Rename the manpages to man6 + cd $pkgname-$pkgver.orig + for f in *.[0-57-9]fun ; do + mv $f ${f/.?fun/.6fun} + done +} + +package() { + install -d $pkgdir/usr/share/man/man6/ + install -m 644 $srcdir/$pkgname-$pkgver.orig/*.6fun $pkgdir/usr/share/man/man6/ + + # Install the license + install -Dm 644 $srcdir/$pkgname-$pkgver.orig/debian/copyright $pkgdir/usr/share/licenses/$pkgname/copyright +} |