summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f2579ba98102f8103734dfeacd246b95a7616a6 (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
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Christian Schendel < doppelhelix@gmail.com >

pkgname=fortune-mod-de
pkgver=0.36
pkgrel=5
pkgdesc="Fortune Cookies in german, from the Debian project"
arch=('any')
url="https://salsa.debian.org/debian/fortunes-de"
license=(
    'GPL-2.0-or-later'
)
depends=(
    'fortune-mod'
)
makedepends=(
    'git'
    'recode'
)
source=("$pkgname::git+$url.git#tag=upstream/0.36"
)
sha256sums=('a910d0b161412c077bc02f71e9d4f2da9caf3cc919e485c5bf62f1bcd05217cc')

build() {
    cd "$pkgname"
    PREFIX=$(pwd)/build \
    DOCDIR=usr/share/doc/${pkgname} \
    BINDIR=usr/bin \
    FORTUNESDIR=usr/share/fortune \
        ./install.sh -utf8
}

package() {
    cd "$pkgname/build"
    rm -r {man,usr/bin}
    cp -r ./* "${pkgdir}"
    # Remove *.u8 files and strip ".fortunes" from filenames
    cd "$pkgdir/usr/share/fortune/de"
    mv debian debian-de
    mv debian.dat debian-de.dat
    rm ./*.u8
    mv ./* ..
    cd "$pkgdir/usr/share/fortune"
    rm -r de
}

# vim: set ts=4 sw=4 et: