I couldn't download the no-jre.zip from Oracle (my login credentials where denied, trying to create a new account didn't result in me receiving the required confirmation mail) - but I found a copy of "sqldeveloper-23.1.0.097.1607.noarch.rpm" here: https://www.fileeagle.com/software/2784/Oracle-SQL-Developer/23.1/
I managed to use that rpm package instead of the zip archive by adapting the PKGBUILD file like this:
diff --git a/PKGBUILD b/PKGBUILD
index 535ab4e..020fccb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,28 +22,28 @@ optdepends=(
)
install="${pkgname}.install"
source=(
- "manual://${pkgname#oracle-}-${pkgver}-no-jre.zip"
+ "manual://${pkgname#oracle-}-${pkgver}-noarch.rpm"
"${pkgname}.desktop"
"${pkgname}.sh"
"LICENSE"
"java_home.patch"
)
md5sums=(
- "b191ae7b67149045ec384e2a8add4ad1"
+ "cf3ce5702e08babbd3f17400a9a57249"
"1d17d18e10ab85dead0770e8840273b3"
"26c1dc933a9ab58a4245f4f351717645"
"71a4092467209c160d0f34abbc08e049"
"f732d162c751dc096bbe0e0f96b78754"
)
sha1sums=(
- "e20967b34f4db1b1395deb10cfd9fe61031a3e11"
+ "cef98eb24bad6fa9a69f3467f618a2b611f2d6c0"
"056bef8e3caa25e62c1395346c34f8a83c532aa8"
"f33177179a2c6ea8b3fa8db5465dc36cf4317b1b"
"524dfbd8baf17e348d529a831abf639029c56c7b"
"f78dd599d2804dedabccf6e1746aa9bb27c2b7ee"
)
sha256sums=(
- "5cb6d77e62b4856255e6b3a6fe3afa876a9af6f1f3c560ceb1b5c7d6532bddc5"
+ "66f825fba46f1e39c6062c7186414f6cb763d2894fd19cbc06b1664b1b72b647"
"bd028a137c83ab3698a562e9a7ec4006fb396178ab4a6ebdbaa60c75b5c0974c"
"43b16049fbf85740767c45f0387a7c5e6118b8876509a8f0bb621ed0b5576a25"
"7b3a6fd8a1ade4427382ee36dc28432655902a0a68547b29c5ce089bd85fe3de"
@@ -51,12 +51,12 @@ sha256sums=(
)
prepare() {
- cd "${srcdir}/${pkgname#oracle-}"
+ cd "${srcdir}/opt/${pkgname#oracle-}"
patch -Np1 -i "${srcdir}/java_home.patch"
}
package() {
- cd "${srcdir}/${pkgname#oracle-}"
+ cd "${srcdir}/opt/${pkgname#oracle-}"
find . \( -iname "*.exe" -o -iname "*.dll" \) -exec rm -f "{}" +
find . -type f -exec install -Dm644 "{}" "${pkgdir}/opt/${pkgname}/{}" \;
Pinned Comments
frealgagu commented on 2020-03-11 04:33 (UTC)
To build the package you need to manually download the no-jre archive from Oracle's site[1] and place it in the same directory with the PKGBUILD[2] and then run makepkg.
[1] https://www.oracle.com/tools/downloads/sqldev-downloads.html, you need "Other platforms"
[2] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=oracle-sqldeveloper