summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ca3f6b0745b9c2e4845d4cef7d19e8bebeb5f71 (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
# Maintainer: Lucas Werkmeister <mail@lucaswerkmeister.de>
# Contributor: Jeff Sharpe <jeff@impcode.com>
# Contributor: wido <widomaker2k7@gmail.com>

pkgname=fortune-mod-matrix
pkgver=20091124
pkgrel=3
pkgdesc="Fortune cookies: The trilogy matrix."
arch=('any')
license=('custom')
depends=('fortune-mod')
groups=('fortune-mods')
source="fortunes.txt"
url="https://en.wikiquote.org/wiki/The_Matrix_%28franchise%29"
md5sums=('3ff9ab5a2362b72d3f14768b5a36b06c')

build() {
  if true; then # change true to false to have pure ASCII quotes
    cp "${srcdir}/fortunes.txt" "${srcdir}/matrix"
  else
    sed "s/’/'/g; s/é/e/g; s/è/e/g;" "${srcdir}/fortunes.txt" > "${srcdir}/matrix"
  fi
  strfile "${srcdir}/matrix" "${srcdir}/matrix.dat"
}

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