summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyberxndr2017-03-07 11:33:06 +0300
committercyberxndr2017-03-07 11:33:06 +0300
commit1455970dfdf1273295d3d20637a206808ee95de6 (patch)
treec8e4370cc84b0ea413b8ad38a7b1383227d285fc
parent9593516f45211cec04fa1ba36eadf01bd30d9e9e (diff)
downloadaur-1455970dfdf1273295d3d20637a206808ee95de6.tar.gz
fix missing icon tray in some scenarios
-rw-r--r--PKGBUILD20
1 files changed, 17 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d4c426d6397..5c6fba19aca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mytetra
pkgver=1.42.2
-pkgrel=1
+pkgrel=2
pkgdesc="Personal manager for data memorization and structuring notes"
arch=('x86_64')
url="https://github.com/xintrea/mytetra_dev"
@@ -18,8 +18,22 @@ build(){
make
}
-package(){
+prepare(){
cd ${pkgname}_dev-v.${pkgver}
- install -D bin/mytetra "${pkgdir}/usr/bin/mytetra"
+
+ echo '#!/bin/sh' > bin/mytetra.run
+ echo 'LD_LIBRARY_PATH=lib:${LD_LIBRARY_PATH:+":$LD_LIBRARY_PATH"}' >> bin/mytetra.run
+ echo 'export LD_LIBRARY_PATH' >> bin/mytetra.run
+ echo '/opt/mytetra/mytetra' >> bin/mytetra.run
}
+package(){
+ cd ${pkgname}_dev-v.${pkgver}
+
+ # install -D bin/mytetra "${pkgdir}/usr/bin/mytetra"
+ install -D -m755 bin/mytetra "${pkgdir}/opt/mytetra/mytetra"
+ install -D -m755 bin/mytetra.run "${pkgdir}/opt/mytetra/mytetra.run"
+
+ mkdir -p "${pkgdir}/usr/bin/"
+ ln -s /opt/mytetra/mytetra.run "${pkgdir}/usr/bin/mytetra"
+}