blob: 9f86adc4cbc636ab90368e4a874c195f4306085d (
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
34
35
36
37
38
39
40
41
|
# Maintainer: Mike Birdgeneau <mike.birdgeneau@gmail.com>
pkgname=fortune-mod-canada-nctr
pkgver=20210624
pkgrel=1
pkgdesc="Fortune quotes from the Truth and Reconciliation Commission of Canada Calls to Action"
arch=('any')
url="https://github.com/mikebirdgeneau/fortune-mod-canada-nctr"
license=('Public domain')
depends=('fortune-mod')
makedepends=('curl')
groups=('fortune-mods')
_dlurl='https://raw.githubusercontent.com/mikebirdgeneau/fortune-mod-canada-nctr/main/nctr'
_verurl="https://raw.githubusercontent.com/mikebirdgeneau/fortune-mod-canada-nctr/main/VERSION"
pkgver()
{
curl -fL -Ro "${srcdir}/version" "${_verurl}"
cat "${srcdir}/version"
}
prepare()
{
msg2 "Downloading data file..."
curl -Ro "${srcdir}/nctr" "${_dlurl}"
}
build()
{
strfile "${srcdir}/nctr"
cd "${srcdir}"
}
package()
{
cd "${srcdir}"
install -D -m644 nctr "${pkgdir}/usr/share/fortune/canada-nctr"
install -D -m644 nctr.dat "${pkgdir}/usr/share/fortune/canada-nctr.dat"
}
|