Commit cf9d16f4 authored by Jakub Jirutka's avatar Jakub Jirutka 🇺🇦
Browse files

testing/java-postgresql-jdbc: new aport

https://jdbc.postgresql.org
Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database
parent 36a2a565
# 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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment