aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/java-postgresql-jdbc/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/java-postgresql-jdbc/APKBUILD b/testing/java-postgresql-jdbc/APKBUILD
new file mode 100644
index 0000000000..619dc2d4bc
--- /dev/null
+++ b/testing/java-postgresql-jdbc/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=java-postgresql-jdbc
+_pkgname=postgresql-jdbc
+pkgver=9.4.1210
+pkgrel=0
+pkgdesc="Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database"
+url="https://jdbc.postgresql.org"
+arch="noarch"
+license="BSD-3"
+depends=""
+makedepends="openjdk8 maven"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pgjdbc/pgjdbc/archive/REL$pkgver.tar.gz"
+builddir="$srcdir/pgjdbc-REL$pkgver/pgjdbc"
+
+build() {
+ cd "$builddir"
+
+ # Note: Maven downloads quite many dependencies from Maven Central, but
+ # these are used only for building, not bundled to the final JAR.
+ export JAVA_HOME="/usr/lib/jvm/default-jvm"
+ mvn package -DskipTests -Dmaven.repo.local="$builddir/.m2"
+}
+
+package() {
+ cd "$builddir"
+
+ install -m 644 -D target/postgresql-$pkgver.jar \
+ "$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar || return 1
+ ln -s $_pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$_pkgname.jar
+}
+
+md5sums="b9eab23ff8ca60ce96492b9ca6c8b435 java-postgresql-jdbc-9.4.1210.tar.gz"
+sha256sums="664641384baaaff45b2392229245cd1d79a9c012ea2ff38343fead28136c9b76 java-postgresql-jdbc-9.4.1210.tar.gz"
+sha512sums="6711cd52e9f2b7dac3865d19868409f9034af7e3567988a92fe84b7db59f5c9a57e4f81e8fee305549862fb0c6b583ee52093a13ff5bf811776bba6cb14f72f4 java-postgresql-jdbc-9.4.1210.tar.gz"