diff options
author | Johan Vandegriff | 2022-04-25 10:48:03 -0400 |
---|---|---|
committer | Johan Vandegriff | 2022-04-25 10:48:03 -0400 |
commit | b986e4f35c6ceaf7b70beb31d6ee2877b796d6cb (patch) | |
tree | 77cfd6b5110a9cf1a1d473674cb1ced92125e946 | |
parent | 5d7aa06e603d53a6671342ccbeab91db15cc1df1 (diff) | |
download | aur-alice2-bin.tar.gz |
added .desktop launcher
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -1,11 +1,12 @@ pkgbase = alice2-bin pkgdesc = An educational software that teaches students computer programming in a 3D environment pkgver = 2.4 - pkgrel = 1 + pkgrel = 2 url = https://www.alice.org/get-alice/alice-2/ arch = x86_64 arch = i586 license = custom + makedepends = gendesk depends = jdk8-openjdk depends = java-runtime depends = lib32-libglvnd @@ -3,11 +3,12 @@ pkgname=alice2-bin pkgver=2.4 _pkgver=2_4e -pkgrel=1 +pkgrel=2 pkgdesc='An educational software that teaches students computer programming in a 3D environment' arch=('x86_64' 'i586') #NOTE: not tested on i586 but the "run-alice" script seems to indicate that it works url='https://www.alice.org/get-alice/alice-2/' license=('custom') +makedepends=('gendesk') depends=('jdk8-openjdk' 'java-runtime' 'lib32-libglvnd') @@ -15,6 +16,9 @@ source=("${pkgname}-${pkgver}.tar::https://www.alice.org/wp-content/uploads/2017 sha256sums=('5a087c75c7a1af95141791f0d4d5846e6067cec9ef5c89c3d67fe7af3b612040') package() { + gendesk --pkgname "Alice 2" --pkgdesc "${pkgdesc}" --exec "/usr/bin/alice2" --categories "Development;IDE" -n -f + install -D -m644 "${srcdir}/Alice 2.desktop" "${pkgdir}/usr/share/applications/alice2.desktop" + install -d "${pkgdir}/usr/bin" "${pkgdir}/opt" echo '#!/bin/sh export JAVA_HOME=/usr/lib/jvm/java-8-openjdk @@ -22,6 +26,7 @@ cd /opt/alice2/Required/ ./run-alice ' > alice2 install -Dm755 alice2 -t "${pkgdir}/usr/bin" + mkdir -p "Alice 2.4/Required/jython-2.1/cachedir/packages" cp -avR "Alice 2.4" "${pkgdir}/opt/alice2" chmod -R 755 "${pkgdir}/opt/alice2" |