summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04b55953259e8552dd8b03a67becd93fb3515ac0 (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
# Maintainer: tPenguinLTG <tpenguinltg@hotmail.com>
pkgname=fortune-mod-foxtrot
pkgver=1701191814
pkgrel=1
_ver=1
pkgdesc="Fortune quotes from FoxTrot"
arch=('any')
license=('custom:cc-sa-3.0')
url="http://en.wikiquote.org/wiki/FoxTrot"
depends=('fortune-mod')
makedepends=('wikiquote-fortune>=1.4')
source=()
sha256sums=()

pkgver()
{
    wikiquote-fortune FoxTrot date-only >/dev/null &&
    cat version
}

build()
{
    wikiquote-fortune FoxTrot
    mv quotes foxtrot
    strfile foxtrot
}

package()
{
    cd "${srcdir}"
    install -dm755 -- "${pkgdir}/usr/share/fortune"
    install -m644 -- foxtrot foxtrot.dat "${pkgdir}/usr/share/fortune"
}