blob: 8217e694674542135f1cb5db7de0785fedf98f62 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Caleb Maclennan <caleb@alerque.com>
pkgname=ezra-bible-app
pkgver=1.16.2
pkgrel=1
pkgdesc="A modern and user-friendly Bible app for desktops, tablets and mobiles focussing on topical study"
arch=('x86_64')
url="https://ezrabibleapp.net"
license=('GPL-2.0-or-later')
depends=(
'alsa-lib'
'gtk3'
'nodejs'
'nss'
)
makedepends=(
'cmake'
'git'
'npm'
'python-setuptools'
'subversion'
'unzip'
)
conflicts=('ezra-project')
options=('!lto')
source=("git+https://github.com/ezra-bible-app/ezra-bible-app.git#tag=$pkgver"
'git+https://github.com/ezra-project/apidocs.ezrabibleapp.net.git')
sha256sums=('096c1fa09d2f2db1f995cb38fb9241d27b833439886ec2ec10fc3af243b8437d'
'SKIP')
prepare() {
cd "$pkgname"
git submodule init
git config submodule.docs.url "$srcdir/apidocs.ezrabibleapp.net"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$pkgname"
export npm_config_cache="$srcdir/npm_cache"
npm install
npm run compile-pug
npm run commit-info
npm run install-node-prune
npm i node-pre-gyp rebuild
npm run rebuild
npm run prune-node-modules
rm -rf /tmp/electron-packager &> /dev/null
npm run purge-build-artifacts
npm run package-linux
}
package() {
cd "$pkgname"
install -d "$pkgdir/opt/$pkgname"
cp -r "release/$pkgname-linux-x64"/* "$pkgdir/opt/$pkgname"
install -Dm644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 icons/ezra.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
install -d "$pkgdir/usr/bin"
ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/"
}
|