diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -1,7 +1,7 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> pkgname=ezra-bible-app-git -pkgver=1.2.0.r4.gba4b665 +pkgver=1.12.0.r183.gb129450 pkgrel=1 pkgdesc='A user-friendly Bible study tool focussing on topical study based on keywords/tags' arch=(x86_64) @@ -19,20 +19,14 @@ makedepends=(git nodejs-pug-cli nodejs-sword-interface # run time dep but gets baked into electron asar npm) -provides=("${pkgname%-git}" - ezra-project-git) -conflicts=("${provides[@]}") +provides=("${pkgname%-git}=$pkgver") +conflicts=("${pkgname%-git}" ezra-project-git) replaces=(ezra-project-git) source=("git+$url.git" "${pkgname%-git}.sh") sha256sums=('SKIP' 'e135a382166ce27cf1348750767e157b2d292d4a189940f0fa874af29bc6540b') -pkgver() { - cd "${pkgname%-git}" - git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' -} - prepare() { cd "${pkgname%-git}" jq 'del(.dependencies["node-addon-api", "node-sword-interface"], .devDependencies["electron", "electron-osx-sign", "node-abi", "node-gyp", "pug-cli", "sequelize-cli"])' package.json | @@ -41,6 +35,11 @@ prepare() { npm install --cache "$srcdir/npm-cache" --no-audit --no-fund --ignore-scripts } +pkgver() { + cd "${pkgname%-git}" + git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd "${pkgname%-git}" local _electron="$(electron --version | sed 's/^v//')" @@ -64,7 +63,7 @@ package() { install -Dm755 "../${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}" install -Dm644 -t "$pkgdir/usr/share/applications/" "${pkgname%-git}.desktop" install -Dm644 -t "$pkgdir/usr/lib/${pkgname%-git}/resources/" "${pkgname%-git}-linux-x64/resources/app.asar" - install -Dm644 -t "$pkgdir/usr/share/licences/$pkgname/" LICENSE + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE install -Dm644 -t "$pkgdir/usr/share/doc/${pkgname%-git}/" {CHANGELOG,README,TECH,LOC_METRICS}.md install -Dm644 icons/ezra.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg" } |