summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b46589292b633bc986ac8ddfb0b1a6d98e88b042 (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-freshprince
pkgver=1603111444
pkgrel=1
_ver=5
pkgdesc="Fortune quotes from The Fresh Prince of Bel-Air"
arch=('any')
license=('custom:cc-sa-3.0')
url="http://en.wikiquote.org/wiki/The_Fresh_Prince_of_Bel-Air"
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=freshprince SCRIPTS=
}

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