diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 6 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Wed Mar 28 16:44:31 UTC 2018 pkgbase = passff-host-git pkgdesc = Host app for the WebExtension PassFF - pkgver = 1.0.1.r7.1feab77 + pkgver = 1.2.3.r6.8fcae33 pkgrel = 1 url = https://github.com/passff/passff-host arch = any @@ -16,4 +14,3 @@ pkgbase = passff-host-git sha384sums = SKIP pkgname = passff-host-git - @@ -1,7 +1,7 @@ # Maintainer: Willem Mulder <14mRh4X0r@gmail.com> _pkgname=passff-host pkgname=$_pkgname-git -pkgver=1.0.1.r7.1feab77 +pkgver=1.2.3.r6.8fcae33 pkgrel=1 pkgdesc="Host app for the WebExtension PassFF" arch=(any) @@ -22,10 +22,14 @@ pkgver() { package() { cd "$_pkgname" - sed -i -e '1c#!/usr/bin/python3' -e s/_VERSIONHOLDER_/${pkgver}/g src/passff.py + semver="$(git describe --tags --long | sed 's/-.*g/+g/')" + sed -i -e '1c#!/usr/bin/python3' -e s/_VERSIONHOLDER_/${semver}/g \ + src/passff.py install -Dm755 src/passff.py \ "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/passff.py" + python -O -m compileall "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/passff.py" + jq '.path = "/usr/lib/mozilla/native-messaging-hosts/passff.py"' src/passff.json \ > "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/passff.json" } |