diff options
author | Mark Wagie | 2021-12-06 11:15:35 -0700 |
---|---|---|
committer | Mark Wagie | 2021-12-06 11:15:35 -0700 |
commit | 11b64480d4cd0fcaafc49149ea3a2f45e294edfc (patch) | |
tree | f9281c9553ebfd89d4c88b130783ec24f8c76c45 | |
parent | 000a32dce2825afae5b05eec58f291b3a8d385e2 (diff) | |
download | aur-11b64480d4cd0fcaafc49149ea3a2f45e294edfc.tar.gz |
About dialog fixes
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = sticky-git pkgdesc = A sticky notes app for the Linux desktop - pkgver = 1.2.r21.g6d6b1ce + pkgver = 1.4.r0.g45c90a4 pkgrel = 1 url = https://github.com/collinss/sticky arch = any @@ -1,6 +1,6 @@ # Maintainer: Mark Wagie <mark.wagie at tutanota dot com> pkgname=sticky-git -pkgver=1.2.r21.g6d6b1ce +pkgver=1.4.r0.g45c90a4 pkgrel=1 pkgdesc="A sticky notes app for the Linux desktop" arch=('any') @@ -18,9 +18,20 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "$srcdir/${pkgname%-git}" + + # Set version in About dialog + sed -i "s/__DEB_VERSION__/${pkgver//+*/}/g" "usr/lib/${pkgname%-git}/${pkgname%-git}.py" + + # Fix license path + sed -i 's|common-licenses/GPL|licenses/common/GPL/license.txt|g' \ + "usr/lib/${pkgname%-git}/${pkgname%-git}.py" +} + build() { cd "$srcdir/${pkgname%-git}" - make buildmo + make } package() { |