summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2021-02-23 13:59:12 -0500
committerfrealgagu2021-02-23 13:59:12 -0500
commit7879d4cee06302e1e0b140f38d43bf635e894b3c (patch)
tree05808204827ebb06e2a51609379b449902be3c15
parentc2237633f897eff1e218f3ecaaa5a3333dc4c307 (diff)
downloadaur-7879d4cee06302e1e0b140f38d43bf635e894b3c.tar.gz
Fixing link issue. Adding sources package.
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore9
-rw-r--r--PKGBUILD12
3 files changed, 18 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 492d94f4ebf..684a3272c44 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -61,3 +61,6 @@ pkgname = jdk8-adoptopenjdk
provides = java-environment=8
provides = java-environment-openjdk=8
+pkgname = adoptopenjdk8-src
+ pkgdesc = AdoptOpenJDK Java ${pkgver%u*} sources
+
diff --git a/.gitignore b/.gitignore
index 0c0a371dacd..15c9658f5a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,11 +4,14 @@ jre8-adoptopenjdk-8u*.pkg.tar.zst
jre8-adoptopenjdk-8u*.pkg.tar.xz
jdk8-adoptopenjdk-8u*.pkg.tar.zst
jdk8-adoptopenjdk-8u*.pkg.tar.xz
+adoptopenjdk8-src-8u*.pkg.tar.zst
+adoptopenjdk8-src-8u*.pkg.tar.xz
OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz
java8-adoptopenjdk-8u*.log
-jre8-adoptopenjdk-8u282-1-x86_64.pkg.tar.zst-namcap.log
-jre8-adoptopenjdk-headless-8u282-1-x86_64.pkg.tar.zst-namcap.log
-jdk8-adoptopenjdk-8u282-1-x86_64.pkg.tar.zst-namcap.log
+jre8-adoptopenjdk-8u*.log
+jre8-adoptopenjdk-headless-8u*.log
+jdk8-adoptopenjdk-8u*.log
+adoptopenjdk8-src-8u*.log
PKGBUILD-namcap.log
pkg/
src/
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"
+}