diff options
author | Willem Mulder | 2023-02-04 11:34:22 +0100 |
---|---|---|
committer | Willem Mulder | 2023-02-04 11:34:22 +0100 |
commit | f695acadab83e76edd6131c147d595574bb80736 (patch) | |
tree | 78fd309e9e6846301cf0a286e58e211dca70726f | |
parent | 5339ccbe292ab79100b29eb3935fe4695a2fb864 (diff) | |
download | aur-f695acadab83e76edd6131c147d595574bb80736.tar.gz |
Fix passff version string, pre-compile python code
-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" } |