summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-05-06 00:01:40 +0300
committerDimitris Kiziridis2020-05-06 00:01:40 +0300
commit2ae9407d64b693c682fa4ad09bd274d65227a984 (patch)
tree9faa8c7c8a2cb980995b870cd539187a156094eb /PKGBUILD
downloadaur-2ae9407d64b693c682fa4ad09bd274d65227a984.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..61d25b1fc84
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=sikulixide-bin
+pkgver=2.0.4
+pkgrel=1
+pkgdesc='Automates anything you see on the screen of your desktop computer'
+arch=('any')
+url='http://sikulix.com/'
+license=('MIT')
+depends=('java-environment>=8'
+ 'opencv'
+ 'tesseract'
+ 'jython'
+ 'jruby')
+makedepends=('unzip' 'gendesk')
+provides=('sikulixide' 'sikulix')
+source=("${pkgname}-${pkgver}.jar::https://launchpad.net/sikuli/sikulix/${pkgver}/+download/sikulixide-${pkgver}.jar"
+ "https://github.com/RaiMan/SikuliX1/raw/master/LICENSE")
+noextract=("${pkgname}-${pkgver}.jar")
+sha256sums=('11de1d936c99604b04c215ce0bfa63e2aafad7111b1738b87d736b025169005f'
+ 'cea4b6292d59625e14968ec666faa7ae6e237b510d846a96875bd6a282677f3a')
+
+package() {
+ if [[ -d icons ]]; then
+ rm -rf icons
+ fi
+ unzip ${pkgname}-${pkgver}.jar icons/sikulix.png
+ install -Dm644 "${pkgname}-${pkgver}.jar" \
+ "${pkgdir}/usr/share/java/${pkgname%-bin}/${pkgname%-bin}-${pkgver}.jar"
+ echo "#!/bin/sh
+ exec /usr/bin/java -jar '/usr/share/java/${pkgname%-bin}/${pkgname%-bin}-${pkgver}.jar' "\$@"" > "${pkgname%-bin}"
+ install -Dm755 "${pkgname%-bin}" -t "${pkgdir}/usr/bin"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-bin}/LICENSE"
+ install -Dm644 icons/sikulix.png "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
+ gendesk -f -n --pkgname "${pkgname%-bin}" \
+ --pkgdesc "$pkgdesc" \
+ --name "SikuliX IDE" \
+ --comment "$pkgdesc" \
+ --exec "${pkgname%-bin}" \
+ --categories 'Utility' \
+ --icon "${pkgname%-bin}"
+ install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
+}
+# vim:set ts=2 sw=2 et: \ No newline at end of file