ppa update
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
|
||||
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
|
||||
# Contributor: Det <nimetonmaili g-mail>
|
||||
|
||||
set -u
|
||||
_pkgname='jdk'
|
||||
_major='8'
|
||||
pkgname="${_pkgname}${_major}"
|
||||
_minor='202'; _build='b08'; _hash='1961070e4c9b4e26a04e7f5a083f551e'
|
||||
#_minor='212'; _build='b10'; _hash='59066701cf1a433da9770636fbc4c9aa'
|
||||
_minor='221'; _build='b11'; _hash='230deb18db3e4014bb8e3e8324f81b43'
|
||||
pkgver="${_major}u${_minor}"
|
||||
pkgrel='1'
|
||||
pkgdesc="Oracle Java ${_major} Development Kit"
|
||||
arch=('x86_64')
|
||||
url='http://www.oracle.com/technetwork/java/javase/downloads/index.html'
|
||||
url='https://www.oracle.com/technetwork/java/javase/downloads/index.html'
|
||||
license=('custom:Oracle')
|
||||
depends=('ca-certificates-java' 'hicolor-icon-theme' 'java-runtime-common' 'nss' 'xdg-utils')
|
||||
depends+=('java-environment-common')
|
||||
@@ -21,9 +22,8 @@ provides=("java-runtime=${_major}" "java-runtime-headless=${_major}" "java-web-s
|
||||
"java-runtime-jre=${_major}" "java-runtime-headless-jre=${_major}" "java-web-start-jre=${_major}"
|
||||
"java-openjfx=${_major}")
|
||||
provides+=("java-environment-jdk=${_major}" "java-environment=${_major}")
|
||||
|
||||
# Variables
|
||||
DLAGENTS=("${DLAGENTS[@]//curl -/curl -b 'oraclelicense=a' -}")
|
||||
|
||||
_jname="${_pkgname}${_major}"
|
||||
_jvmdir="/usr/lib/jvm/java-${_major}-${_pkgname}"
|
||||
|
||||
@@ -44,28 +44,52 @@ backup=("etc/java-${_jname}/amd64/jvm.cfg"
|
||||
"etc/java-${_jname}/sound.properties")
|
||||
options=('!strip') # JDK debug-symbols
|
||||
install="${pkgname}.install"
|
||||
_srcfil="${_pkgname}-${pkgver}-linux-x64.tar.gz"
|
||||
source=(
|
||||
"https://download.oracle.com/otn-pub/java/jce/${_major}/jce_policy-${_major}.zip"
|
||||
"https://download.oracle.com/otn-pub/java/jdk/${pkgver}-${_build}/${_hash}/${_pkgname}-${pkgver}-linux-x64.tar.gz"
|
||||
"https://download.oracle.com/otn-pub/java/jdk/${pkgver}-${_build}/${_hash}/${_srcfil}"
|
||||
"jconsole-${_jname}.desktop"
|
||||
"jmc-${_jname}.desktop"
|
||||
"jvisualvm-${_jname}.desktop"
|
||||
"policytool-${_jname}.desktop"
|
||||
'readme.sh'
|
||||
)
|
||||
# from oracle-sqldeveloper
|
||||
DLAGENTS+=("manual::${startdir:-}/readme.sh %o %u")
|
||||
source[1]="manual://${_srcfil}"
|
||||
if [ -s ~/"Downloads/${_srcfil}" ] && [ ! -e "${_srcfil}" ]; then
|
||||
if type msg > /dev/null 2>&1; then
|
||||
set +u
|
||||
msg "Scooping files from ~/Downloads"
|
||||
msg2 "${_srcfil}"
|
||||
set -u
|
||||
ln -sr ~/"Downloads/${_srcfil}"
|
||||
fi
|
||||
fi
|
||||
unset _srcfil
|
||||
md5sums=('b3c7031bc65c28c2340302065e7d00d3'
|
||||
'0029351f7a946f6c05b582100c7d45b7'
|
||||
'9e1ecd461c3b848af45ab41c528d9a95'
|
||||
'8a66f50efdc867ffd6a27168bc93b210'
|
||||
'1cbde70639abd98db4bace284dbf2bc4'
|
||||
'f0b39865361437f3778ecbe6ffbc0a06'
|
||||
'89704501aff8efe859c31968d8d168e6')
|
||||
'89704501aff8efe859c31968d8d168e6'
|
||||
'4dda444d58a4d78ca6357228adbde8a2')
|
||||
sha256sums=('f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59'
|
||||
'9a5c32411a6a06e22b69c495b7975034409fa1652d03aeb8eb5b6f59fd4594e0'
|
||||
'bac52b7f120a03c4c0815ca8fc77c02a8f3db2ded121ffad7449525f377e2479'
|
||||
'65282603bd0804d162f3f7da47bc7f3c91373e87504297d6a6fd6f2f8a1ec4ee'
|
||||
'8f865b52946a9ab98556c56306c7e70ae7aa432b4d005c70df0bba9d2c3111b1'
|
||||
'144e6651fcea08d95f3148d3a8ad17deb93fec4dd9236d37d27d7c648230b870'
|
||||
'635433e9c78ff58af65c316232ac9907d289a324428923788ea0f82ae7f8083b')
|
||||
'635433e9c78ff58af65c316232ac9907d289a324428923788ea0f82ae7f8083b'
|
||||
'd1b4b3161614d7620365a0528a86f7eec543de30ee756b1ad2dabd386e84f734')
|
||||
|
||||
PKGEXT='.pkg.tar.gz' # much faster than .xz
|
||||
## Alternative mirror, if your local one is throttled:
|
||||
#source[0]=("http://ftp.wsisiz.edu.pl/pub/pc/pozyteczne%20oprogramowanie/java/${_pkgname}-${pkgver}-linux-x64.gz")
|
||||
## Posting new sites does no good. They get taken down by the admin
|
||||
## from too much traffic or complaints from Oracle.
|
||||
#source[1]="http://ftp.wsisiz.edu.pl/pub/pc/pozyteczne%20oprogramowanie/java/${_pkgname}-${pkgver}-linux-x64.gz"
|
||||
|
||||
DLAGENTS=("${DLAGENTS[@]// -gqb \"\"/ -gq}")
|
||||
DLAGENTS=("${DLAGENTS[@]//curl -/curl -b 'oraclelicense=a' -}")
|
||||
|
||||
package() {
|
||||
set -u
|
||||
@@ -120,6 +144,11 @@ package() {
|
||||
mv 'jre/lib/desktop'/* "${pkgdir}/usr/share/"
|
||||
install -m644 "${srcdir}"/*.desktop "${pkgdir}/usr/share/applications/"
|
||||
|
||||
# Enable context menu launch (Austcool)
|
||||
sed -e 's:^NoDisplay=true:#&:g' \
|
||||
-e 's:^Exec=/usr.*$:& -F:g' \
|
||||
-i "${pkgdir}/usr/share/applications/sun-java-jdk8.desktop"
|
||||
|
||||
# Move confs to /etc and link back to /usr: /usr/lib/jvm/java-${_jname}/jre/lib -> /etc
|
||||
local _new_etc_path
|
||||
for _new_etc_path in "${backup[@]}"; do
|
||||
|
Reference in New Issue
Block a user