blob: 2694f45a2dfd3c6a2c5d32ad8ada7203ea0edddf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}
|