summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 364ce7bc32b33d3c276930d07ea2d441be46e44e (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
# Maintainer: Emmie Maeda <emmie.maeda@gmail.com>

pkgname=fortune-mod-houseofcards
pkgver=1.0.8
pkgrel=1
pkgdesc='Fortune quotes from "House of Cards".'
arch=('any')
license=('custom:PublicDomain')
install="$pkgname.install"
makedepends=('bsd-games') # for rot13
depends=('fortune-mod')
groups=('fortune-mods')
_name='houseofcards'
source=("$_name.txt")
sha512sums=('894b17b5cfb89cf8fc3325e6568a2547881f0ca20a42c7553ea2b6d65a1e8b93bdd1b683bd4d98b6b5339c4641f0f95ca959419cd701a0844a3603341ee7bbf4')

build() {
    cd "$srcdir"
    rot13 < "$_name.txt" > "$_name"
    strfile -x "$_name" "$_name.dat"
}

package() {
    install -D -m644 "$srcdir/$_name" "$pkgdir/usr/share/fortune/$_name"
    install -D -m644 "$srcdir/$_name.dat" "$pkgdir/usr/share/fortune/$_name.dat"
}