blob: 1bde5a75ef7b175851c62b8846737121aeade493 (
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
42
43
44
45
46
|
# Maintainer: Elijah Gregg <lovetocode999@ctrl-c.club>
pkgname=heb12-cli-git
pkgver=0.1.0.r31.ge41cf6c
pkgrel=1
pkgdesc="Bible command line interface reader."
arch=("x86_64")
url="https://heb12.com/#cli"
license=("GPL2")
makedepends=("wget")
provides=("heb12")
conflicts=("heb12")
source=("git+https://code.heb12.com/heb12/cli.git" "https://api.heb12.com/translations/biblec/web.i" "https://api.heb12.com/translations/biblec/web.t")
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$srcdir/cli"
_tag=$(git tag --sort=v:refname | tail -n1)
printf '%s.r%s.g%s' "${_tag#v}" "$(git rev-list "$_tag"..HEAD --count)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/cli"
touch option.h
echo "char *defaultIndex = \"/usr/share/heb12/bibles/web.i\";" >> option.h
echo "char *defaultReference = \"Ps 139 14\";" >> option.h
git submodule --quiet update --init --recursive
}
build() {
cd "$srcdir/cli"
gcc biblec/biblec.c fbrp/fbrp.c app.c -o heb12
}
package() {
cd "$srcdir/cli"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/heb12/bibles"
cp heb12 "$pkgdir/usr/bin"
cp ../web.i "$pkgdir/usr/share/heb12/bibles"
cp ../web.t "$pkgdir/usr/share/heb12/bibles"
}
|