summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-05-09 01:27:39 +0300
committerDimitris Kiziridis2020-05-09 01:27:39 +0300
commit6a07081f0d310f17b5ccd9f52c96e2f696a24526 (patch)
tree7c9a80fb9a47d24ba25a912054c3399535fde831
parent1084c2e363477345bb8080d46be7b769211130c9 (diff)
downloadaur-6a07081f0d310f17b5ccd9f52c96e2f696a24526.tar.gz
sanitize pkgbuild
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD47
2 files changed, 37 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e42b9cb2786..84fd7e838b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,22 @@
pkgbase = alice-bin
pkgdesc = An educational software that teaches students computer programming in a 3D environment
pkgver = 3.5
- pkgrel = 3
- url = http://www.alice.org/
+ pkgrel = 4
+ url = http://www.alice.org
install = post_install
arch = i686
arch = x86_64
license = custom
depends = java-environment=8
- depends = mesa
+ depends = xdg-utils
+ depends = lib32-glu
+ depends = lib32-libxrandr
+ depends = lib32-libxcursor
provides = alice3
- provides = alice
- noextract = Alice3_unix_3_5.sh
- source = http://www.alice.org/wp-content/uploads/2019/04/Alice3_unix_3_5.sh
- sha512sums = 8c1d17e95bc08b38a9615607be9c47dc96c0e374118364377a197e12026e6b26a0058e75a4f7d0f9c81ad1153734012a6796eaa44247c00d19c8e4a114f0c836
+ noextract = alice-bin-3.5.sh
+ options = !strip
+ source = alice-bin-3.5.sh::http://www.alice.org/wp-content/uploads/2019/04/Alice3_unix_3_5.sh
+ sha256sums = dc7f80bb33e8fca32e0f8961ba815c69af07cee740421927d93026e5137ee79d
pkgname = alice-bin
diff --git a/PKGBUILD b/PKGBUILD
index b2a4a911d7f..effd8b37879 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,31 +5,38 @@
pkgname=alice-bin
pkgver=3.5
-pkgrel=3
+pkgrel=4
pkgdesc='An educational software that teaches students computer programming in a 3D environment'
arch=('i686' 'x86_64')
-url="http://www.alice.org/"
+url="http://www.alice.org"
license=('custom')
-depends=('java-environment=8' 'mesa')
-provides=('alice3' 'alice')
+depends=('java-environment=8'
+ 'xdg-utils'
+ 'lib32-glu'
+ 'lib32-libxrandr'
+ 'lib32-libxcursor')
+options=('!strip')
+provides=('alice3')
install=post_install
-source=("http://www.alice.org/wp-content/uploads/2019/04/Alice3_unix_3_5.sh")
-noextract=('Alice3_unix_3_5.sh')
-sha512sums=('8c1d17e95bc08b38a9615607be9c47dc96c0e374118364377a197e12026e6b26a0058e75a4f7d0f9c81ad1153734012a6796eaa44247c00d19c8e4a114f0c836')
+source=("${pkgname}-${pkgver}.sh::http://www.alice.org/wp-content/uploads/2019/04/Alice3_unix_3_5.sh")
+noextract=("${pkgname}-${pkgver}.sh")
+sha256sums=('dc7f80bb33e8fca32e0f8961ba815c69af07cee740421927d93026e5137ee79d')
package() {
- cd "${srcdir}"
- mkdir -p "${pkgdir}"/opt
- mkdir -p "${pkgdir}"/usr/share/applications
- chmod 755 Alice3_unix_3_5.sh
- ./Alice3_unix_3_5.sh -q -dir "$pkgdir"/opt/alice
- mv "$pkgdir/opt/alice/Alice 3.desktop" "${pkgdir}"/usr/share/applications/alice3.desktop
- rm "$pkgdir/opt/alice/uninstall"
- sed -i "s@${pkgdir}@@" "${pkgdir}/usr/share/applications/alice3.desktop"
- sed -i "6s@.*@Icon=alice3@" "${pkgdir}/usr/share/applications/alice3.desktop"
- sed -i "7s@.*@Categories=Application;Development;@" "${pkgdir}/usr/share/applications/alice3.desktop"
- sed -i "3 a Comment=An IDE for teaching kids programming" "${pkgdir}/usr/share/applications/alice3.desktop"
- install -Dm644 "${pkgdir}/opt/alice/.install4j/Alice 3.png" "${pkgdir}/usr/share/pixmaps/alice3.png"
- install -Dm644 "${pkgdir}/opt/alice/application/EULA_Alice3.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -d "${pkgdir}/opt" "${pkgdir}/usr/share/applications"
+ chmod 755 ${pkgname}-${pkgver}.sh
+ ./${pkgname}-${pkgver}.sh -q -dir "$pkgdir/opt/alice"
+ mv "$pkgdir/opt/alice/Alice 3.desktop" "${pkgdir}/usr/share/applications/alice3.desktop"
+ rm "$pkgdir/opt/alice/uninstall"
+ sed -i "s@${pkgdir}@@" "${pkgdir}/usr/share/applications/alice3.desktop"
+ sed -i "6s@.*@Icon=alice3@" "${pkgdir}/usr/share/applications/alice3.desktop"
+ sed -i "7s@.*@Categories=Application;Development;@" "${pkgdir}/usr/share/applications/alice3.desktop"
+ sed -i "3 a Comment=An IDE for teaching kids programming" "${pkgdir}/usr/share/applications/alice3.desktop"
+ sed -i "s|$srcdir||" "${pkgdir}/opt/alice/.install4j/installation.log"
+ sed -i "s|$pkgdir||" "${pkgdir}/opt/alice/.install4j/response.varfile"
+ sed -i "s|$pkgdir||" "${pkgdir}/opt/alice/.install4j/installation.log"
+ sed -i "s|$pkgdir||" "${pkgdir}/opt/alice/.install4j/install.prop"
+ install -Dm644 "${pkgdir}/opt/alice/.install4j/Alice 3.png" "${pkgdir}/usr/share/pixmaps/alice3.png"
+ install -Dm644 "${pkgdir}/opt/alice/application/EULA_Alice3.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: \ No newline at end of file