summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyberxndr2017-03-16 12:56:43 +0300
committercyberxndr2017-03-16 12:56:43 +0300
commit451cb5c11effc99faf8fa062f88ec3bcbb707598 (patch)
treef39adb5e8928923eba6fc9f7e89ff2481bdb2427
parent18eb020b26b9648dc8b4d69defec7a033243a48c (diff)
downloadaur-451cb5c11effc99faf8fa062f88ec3bcbb707598.tar.gz
Add menu entry and icon
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD39
2 files changed, 31 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d6921a3215b..b1748ab1ae9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,8 +5,14 @@ pkgbase = mytetra
url = https://github.com/xintrea/mytetra_dev
arch = x86_64
license = GPL3
+ noextract = mytetra-1-30-icon.png
+ noextract = mytetra.desktop
source = http://webhamster.ru/db/data/articles/105/mytetra_1_42_2_lin_64.tar.gz
+ source = https://macin.files.wordpress.com/2012/08/mytetra-1-30-icon.png
+ source = https://gist.githubusercontent.com/cyberxndr/498db38606e53a56efb32d79a2c73b4a/raw/82f2a036d300058f6253732609654e73a8b8e020/mytetra.desktop
md5sums = 54e36bac3f2d06d2d1bf6fd77501bb63
+ md5sums = 5a4e7778d6e042582db6d6e04530a4a1
+ md5sums = 52f0675d8fa88fa9a388e0f4a54fa7e6
pkgname = mytetra
diff --git a/PKGBUILD b/PKGBUILD
index 6638a8c4af2..c092df6541a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,25 +7,36 @@ pkgdesc="Personal manager for data memorization and structuring notes"
arch=('x86_64')
url="https://github.com/xintrea/mytetra_dev"
license=('GPL3')
-source=("http://webhamster.ru/db/data/articles/105/mytetra_1_42_2_lin_64.tar.gz")
-md5sums=('54e36bac3f2d06d2d1bf6fd77501bb63')
+source=("http://webhamster.ru/db/data/articles/105/mytetra_1_42_2_lin_64.tar.gz"
+ "https://macin.files.wordpress.com/2012/08/mytetra-1-30-icon.png"
+ "https://gist.githubusercontent.com/cyberxndr/498db38606e53a56efb32d79a2c73b4a/raw/82f2a036d300058f6253732609654e73a8b8e020/mytetra.desktop")
+noextract=("mytetra-1-30-icon.png"
+ "mytetra.desktop")
-prepare(){
- cd mytetra_1_42_2_lin_64
+md5sums=('54e36bac3f2d06d2d1bf6fd77501bb63'
+ '5a4e7778d6e042582db6d6e04530a4a1'
+ '52f0675d8fa88fa9a388e0f4a54fa7e6')
- echo '#!/bin/sh' > mytetra.run
- echo 'PROGDIR="/opt/mytetra"' >> mytetra.run
- echo 'LD_LIBRARY_PATH=$PROGDIR/lib:${LD_LIBRARY_PATH}' >> mytetra.run
- echo 'export LD_LIBRARY_PATH' >> mytetra.run
- echo '$PROGDIR/mytetra' >> mytetra.run
+prepare(){
+ cd mytetra_1_42_2_lin_64
+ echo '#!/bin/sh' > mytetra.run
+ echo 'PROGDIR="/opt/mytetra"' >> mytetra.run
+ echo 'LD_LIBRARY_PATH=$PROGDIR/lib:${LD_LIBRARY_PATH}' >> mytetra.run
+ echo 'export LD_LIBRARY_PATH' >> mytetra.run
+ echo '$PROGDIR/mytetra' >> mytetra.run
}
+
+
package(){
- cd mytetra_1_42_2_lin_64
+ install -Dm 644 mytetra-1-30-icon.png "${pkgdir}/usr/share/pixmaps/mytetra.png"
+ install -Dm 644 mytetra.desktop "${pkgdir}/usr/share/applications/mytetra.desktop"
+
+ cd mytetra_1_42_2_lin_64
- mkdir -p "${pkgdir}/opt/mytetra"
- cp * "${pkgdir}/opt/mytetra/" -r
+ mkdir -p "${pkgdir}/opt/mytetra"
+ cp * "${pkgdir}/opt/mytetra/" -r
- mkdir -p "${pkgdir}/usr/bin/"
- ln -s /opt/mytetra/mytetra.run "${pkgdir}/usr/bin/mytetra"
+ mkdir -p "${pkgdir}/usr/bin/"
+ ln -s /opt/mytetra/mytetra.run "${pkgdir}/usr/bin/mytetra"
}