summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFabian Kemper2022-12-18 16:21:04 +0100
committerFabian Kemper2022-12-18 16:21:04 +0100
commit31098e4fd84f7dc422a2fcc71e6bb58e4dda8a96 (patch)
tree8f19eb6eb10c79eac894fe422243c9bac26693a4 /PKGBUILD
parent49a53454b94e23c73a9229f99e9927eaa7e77fa3 (diff)
downloadaur-astah-uml.tar.gz
Add Java8 Patch
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aff1b54526a6..0983750f7b23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=astah-uml
pkgver=9.0.0.1778f1.0
_pkgver=9.0.0.1778f1-0
-pkgrel=1
+pkgrel=2
url='https://astah.net/products/astah-uml'
pkgdesc='Lightweight and easy-to-use UML2.x modeler (With trial)'
arch=('i686' 'x86_64')
@@ -39,4 +39,6 @@ package() {
rm "${pkgdir}/opt/astah-uml"/mime-astah_uml.xml
rm "${pkgdir}/opt/astah-uml"/astah_uml.desktop
rm "${pkgdir}/opt/astah-uml"/astah_uml-doc.png
+ sed -i '/#!\/bin\/sh/a export PATH="\$JAVA_HOME\/bin:\$PATH"' "${pkgdir}/opt/astah-uml/astah-uml"
+ sed -i '/#!\/bin\/sh/a export JAVA_HOME=\/usr\/lib\/jvm\/java-8-openjdk\/jre' "${pkgdir}/opt/astah-uml/astah-uml"
}