summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6687375b6969378e03a856d2d2bc9988402cbbcd (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-thenewsroom
pkgver=1511132038
pkgrel=1
_ver=5
pkgdesc="Fortune quotes from The Newsroom"
arch=('any')
license=('custom:cc-sa-3.0')
url=("http://en.wikiquote.org/wiki/The_Newsroom")
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=thenewsroom SCRIPTS=
}

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