diff options
author | Caleb Maclennan | 2019-06-21 11:53:19 +0300 |
---|---|---|
committer | Caleb Maclennan | 2019-06-21 11:53:19 +0300 |
commit | e394d58bc8f2a216f59fe73e44eeacb5ad3e103d (patch) | |
tree | 51d51c34568768c661c22c07e6db500414b34a99 | |
download | aur-e394d58bc8f2a216f59fe73e44eeacb5ad3e103d.tar.gz |
Initial add of tagged release build
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | ezra-project.desktop | 7 | ||||
-rwxr-xr-x | ezra-project.sh | 3 |
4 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..376b2e4bf2ee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = ezra-project + pkgdesc = a bible study software focussing on topical study based on keywords/tags + pkgver = 0.8.1 + pkgrel = 1 + url = https://github.com/tobias-klein/ezra-project + arch = x86_64 + license = GPL3 + makedepends = npm + makedepends = sword + depends = electron + depends = nodejs + conflicts = ezra-project-git + source = https://github.com/tobias-klein/ezra-project/archive/0.8.1.tar.gz + source = ezra-project.sh + source = ezra-project.desktop + sha256sums = b6fa09f5773f798929bdcb3d95869a56bdf7c115116b21bbe62afb859f53f962 + sha256sums = 0a36167bce248b6082045163cf60b143d02ca1e447a791cf0c88e960a7fdc618 + sha256sums = f89adcdecca5b0684679a4c4060a7e0398b5d332b2377e0fb0e115969d94e116 + +pkgname = ezra-project + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a03218e300ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> + +# https://wiki.archlinux.org/index.php/Electron_package_guidelines + +pkgname=ezra-project +pkgver=0.8.1 +pkgrel=1 +pkgdesc="a bible study software focussing on topical study based on keywords/tags" +arch=('x86_64') +url="https://github.com/tobias-klein/ezra-project" +license=('GPL3') +depends=('electron' 'nodejs') +makedepends=('npm' 'sword') +conflicts=("${pkgname}-git") +source=("https://github.com/tobias-klein/${pkgname}/archive/${pkgver}.tar.gz" + 'ezra-project.sh' + 'ezra-project.desktop') +sha256sums=('b6fa09f5773f798929bdcb3d95869a56bdf7c115116b21bbe62afb859f53f962' + '0a36167bce248b6082045163cf60b143d02ca1e447a791cf0c88e960a7fdc618' + 'f89adcdecca5b0684679a4c4060a7e0398b5d332b2377e0fb0e115969d94e116') +_electron="$(electron --version | sed 's/^v//')" + +prepare() { + cd "$srcdir/${pkgname}" + npm uninstall --no-audit -D electron + npm install --no-audit electron@"$_electron" +} + +build() { + cd "$srcdir/${pkgname}" + # npm run rebuild-linux + $(npm bin)/electron-rebuild -f -w node-sword-interface -v $_electron +} + +package() { + cd "$srcdir/${pkgname}" + install -Dm644 "$srcdir/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop" + install -Dm755 "$srcdir/${pkgname}.sh" "$pkgdir/usr/bin/${pkgname}" + $(npm bin)/electron-packager . ${pkgname} --overwrite --asar --platform=linux --arch=x64 --prune=true --out=release --electron-version=$_electron + rm release/ezra-project-linux-x64/${pkgname} + mkdir "$pkgdir/usr/lib/" + cp -a release/ezra-project-linux-x64 "$pkgdir/usr/lib/${pkgname}" +} diff --git a/ezra-project.desktop b/ezra-project.desktop new file mode 100644 index 000000000000..1cc8b52d3ad6 --- /dev/null +++ b/ezra-project.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Ezra Project +Comment=Bible study software focussing on topical study based on keywords +Exec=ezra-project +Terminal=false +Type=Application +Icon=ezra-project diff --git a/ezra-project.sh b/ezra-project.sh new file mode 100755 index 000000000000..68bbd4da8b70 --- /dev/null +++ b/ezra-project.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +exec electron /usr/lib/ezra-project/resources/app.asar "$@" |