summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ad65a070792b659559ad81c6c85f09300804537 (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=7
pkgdesc="A set of miscellaneous humorous manpages (don't take them too seriously!)."
arch=('any')
url="http://debian.org/"
license=('custom')
source=(http://httpredir.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver.orig.tar.gz
        http://httpredir.debian.org/debian/pool/main/f/$pkgname/${pkgname}_$pkgver-5.diff.gz)
sha256sums=('5dcfcbb30a26585b53f27dc591b7e9cd485f738e603fa3fc9f074c55eabb6f91'
            'aea8369726213a8294f70c0d0b1637b2cf961d6208ad52fa97daf105e9452a53')

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
}