diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | tasker-permissions.sh | 2 |
3 files changed, 20 insertions, 13 deletions
@@ -1,14 +1,14 @@ pkgbase = tasker-permissions-git pkgdesc = Utility to easily grant Tasker permissions pkgver = 0.2.0.r2.ga137604 - pkgrel = 1 + pkgrel = 2 url = https://github.com/joaomgcd/Tasker-Permissions arch = x86_64 license = Apache makedepends = git makedepends = npm depends = android-tools - depends = electron25 + depends = electron28 provides = tasker-permissions conflicts = tasker-permissions source = tasker-permissions::git+https://github.com/joaomgcd/Tasker-Permissions.git @@ -16,6 +16,6 @@ pkgbase = tasker-permissions-git source = tasker-permissions.sh sha256sums = SKIP sha256sums = 018509800d5dcf4b9030c5dff291355476715443b412127f2eca712d764334cb - sha256sums = 614a5bf9dbdd74e288295e50df7e049f76bf887439cf1373ec620164dacd3c4b + sha256sums = ef4aef82872934ce7872ad8d5695b5a8efd2e633bfd5c404ade04ce7309a6a85 pkgname = tasker-permissions-git @@ -1,8 +1,8 @@ # Maintainer: Mark Wagie <mark dot wagie at proton dot me> pkgname=tasker-permissions-git pkgver=0.2.0.r2.ga137604 -pkgrel=1 -_electronversion=25 +pkgrel=2 +_electronversion=28 pkgdesc="Utility to easily grant Tasker permissions" arch=('x86_64') url="https://github.com/joaomgcd/Tasker-Permissions" @@ -16,25 +16,32 @@ source=("${pkgname%-git}::git+https://github.com/joaomgcd/Tasker-Permissions.git "${pkgname%-git}.sh") sha256sums=('SKIP' '018509800d5dcf4b9030c5dff291355476715443b412127f2eca712d764334cb' - '614a5bf9dbdd74e288295e50df7e049f76bf887439cf1373ec620164dacd3c4b') + 'ef4aef82872934ce7872ad8d5695b5a8efd2e633bfd5c404ade04ce7309a6a85') pkgver() { - cd "$srcdir/${pkgname%-git}" + cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "${pkgname%-git}" + export npm_config_cache="$srcdir/npm_cache" + npm install + + sed -i "s|@ELECTRONVERSION@|${_electronversion}|" "$srcdir/${pkgname%-git}.sh" +} + build() { - cd "$srcdir/${pkgname%-git}" + cd "${pkgname%-git}" electronDist="/usr/lib/electron${_electronversion}" electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)" export npm_config_cache="$srcdir/npm_cache" - npm install - ./node_modules/.bin/electron-builder build --dir \ - $dist -c.electronDist=$electronDist -c.electronVersion=$electronVer + npm exec -c "electron-builder build --dir \ + $dist -c.electronDist=$electronDist -c.electronVersion=$electronVer" } package() { - cd "$srcdir/${pkgname%-git}" + cd "${pkgname%-git}" install -d "$pkgdir/usr/lib/${pkgname%-git}/" cp -r dist/linux-unpacked/resources/ "$pkgdir/usr/lib/${pkgname%-git}/" diff --git a/tasker-permissions.sh b/tasker-permissions.sh index 05a0f3821dc6..47988f47ae9e 100644 --- a/tasker-permissions.sh +++ b/tasker-permissions.sh @@ -1,3 +1,3 @@ #!/bin/bash -exec electron25 /usr/lib/tasker-permissions/resources/app.asar "$@" +exec electron@ELECTRONVERSION@ /usr/lib/tasker-permissions/resources/app.asar "$@" |