summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb4e3a5677aa211faf1a8a35f131af81a8f8b3d6 (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
pkgname=fortune-mod-theshield
pkgver=1610170050
pkgrel=1
_ver=5
pkgdesc="Fortune quotes from The Shield"
arch=('any')
license=('custom:cc-sa-3.0')
url="http://en.wikiquote.org/wiki/The_Shield"
depends=('fortune-mod')
makedepends=('fortune-mod' 'make' 'coreutils' 'sed' 'grep' 'wikiquote-fortune>=1.4')
source=("https://github.com/maandree/wikiquote-fortune-collection/archive/${_ver}.tar.gz")
sha256sums=(f25b0e335782fc59bf960e5f09c16ebd0bd38cb9cb174f0338c6ba5f8d3013b5)


build()
{
    cd "${srcdir}/wikiquote-fortune-collection-${_ver}"
    make SHOWS=theshield SCRIPTS=
}

package()
{
    cd "${srcdir}/wikiquote-fortune-collection-${_ver}"
    cd quotes/theshield
    install -dm755 -- "${pkgdir}/usr/share/fortune"
    install -m644 -- theshield theshield.dat "${pkgdir}/usr/share/fortune"
}