summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfrealgagu2021-02-23 13:59:12 -0500
committerfrealgagu2021-02-23 13:59:12 -0500
commit7879d4cee06302e1e0b140f38d43bf635e894b3c (patch)
tree05808204827ebb06e2a51609379b449902be3c15 /PKGBUILD
parentc2237633f897eff1e218f3ecaaa5a3333dc4c307 (diff)
downloadaur-java8-adoptopenjdk.tar.gz
Fixing link issue. Adding sources package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9c7d6c9b78a..41fa5ea5258 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Leeo97one <contact.leeo97one@gmail.com>
pkgbase=java8-adoptopenjdk
-pkgname=("${pkgbase/java/jre}-headless" "${pkgbase/java/jre}" "${pkgbase/java/jdk}")
+pkgname=("${pkgbase/java/jre}-headless" "${pkgbase/java/jre}" "${pkgbase/java/jdk}" "${pkgbase/java8-/}8-src")
pkgver=8u282
_jdk_build=08
pkgrel=1
@@ -148,10 +148,10 @@ package_jdk8-adoptopenjdk() {
for _binary_file in $(ls | grep -v "java-rmi.cgi"); do
if [ -e "${srcdir}/jdk${pkgver}-b${_jdk_build}/jre/bin/${_binary_file}" ]; then
# Provide a link of the jre binary in the jdk/bin/ directory
- ln -s "${srcdir}/jdk${pkgver}-b${_jdk_build}/jre/bin/${_binary_file}" "${pkgdir}/usr/lib/jvm/${pkgbase/java/java-}/bin/${_binary_file}"
+ ln -s "../jre/bin/${_binary_file}" "${pkgdir}/usr/lib/jvm/${pkgbase/java/java-}/bin/${_binary_file}"
else
# Copy binary to jdk/bin/
- install -Dm755 ${_binary_file} "${pkgdir}/usr/lib/jvm/${pkgbase/java/java-}/bin/${_binary_file}"
+ install -Dm755 "${_binary_file}" "${pkgdir}/usr/lib/jvm/${pkgbase/java/java-}/bin/${_binary_file}"
# Copy man page
if [ -f "${srcdir}/jdk${pkgver}-b${_jdk_build}/man/man1/${_binary_file}.1" ]; then
install -Dm644 "${srcdir}/jdk${pkgver}-b${_jdk_build}/man/man1/${_binary_file}.1" "${pkgdir}/usr/share/man/man1/${_binary_file}-${pkgbase/java8-/}${pkgver%u*}.1"
@@ -170,3 +170,9 @@ package_jdk8-adoptopenjdk() {
install -dm755 "${pkgdir}/usr/share/licenses/"
ln -sf "/usr/share/licenses/${pkgbase}" "${pkgdir}/usr/share/licenses/${pkgname}"
}
+
+package_adoptopenjdk8-src() {
+ pkgdesc='AdoptOpenJDK Java ${pkgver%u*} sources'
+
+ install -D "${srcdir}/jdk${pkgver}-b${_jdk_build}/src.zip" "${pkgdir}/usr/lib/jvm/${pkgbase/java/java-}/src.zip"
+}