aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b662644792accb647f48c63345e530cf6584a36 (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
# Maintainer: d.woffinden
pkgname=fortune-mod-farscape
pkgver=r2128592
pkgrel=1
pkgdesc='Fortune cookies: Farscape (TV series), scraped from https://en.wikiquote.org/wiki/Farscape'
arch=('any')
url='http://github.com/dwoffinden/fortune-mod-farscape'
license=('CCPL:by-sa3.0')
makedepends=('perl' 'perl-mediawiki-api' 'perl-libwww')
depends=('fortune-mod')
groups=('fortune-mods')
source=('wiki.pl')
md5sums=('c298998fe5c54870fbc12ce315ef311f')

pkgver() {
  cd "$srcdir"
  printf "r%s" $(perl wiki.pl revision)
}

build() {
  cd "$srcdir"
  perl wiki.pl > farscape
  strfile farscape farscape.dat
}

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