summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c7b744251971449f54be1687e405d27267f8151 (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=r2221412
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' 'perl-lwp-protocol-https')
depends=('fortune-mod')
groups=('fortune-mods')
source=('wiki.pl')
md5sums=('3ad9f6b85b5441f271d31a2f4985c519')

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
}