Package Details: postgresql-jdbc 9.4.1208-1

Git Clone URL: https://aur.archlinux.org/postgresql-jdbc.git (read-only)
Package Base: postgresql-jdbc
Description: The official JDBC driver for PostgreSQL. Contains JDBC 4.0 and 4.1 drivers.
Upstream URL: http://jdbc.postgresql.org/
Licenses: custom: BSD
Submitter: None
Maintainer: Huulivoide
Last Packager: Huulivoide
Votes: 42
Popularity: 0.548858
First Submitted: 2008-01-28 20:22
Last Updated: 2016-03-21 16:28

Latest Comments

loser137 commented on 2016-03-22 08:05

postgresql-jdbc-9.4.1208.jdbc42.jar is downloaded but not installed. You can insert the following line in package() to fix this:
install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"

GLaDER commented on 2016-02-17 10:36

AUR Packages (1): postgresql-jdbc-9.4.1206-2

:: Proceed with installation? [Y/n]

:: Retrieving package(s)...
Already up-to-date.
:: View postgresql-jdbc PKGBUILD? [Y/n]

:: postgresql-jdbc PKGBUILD viewed
:: Checking postgresql-jdbc integrity...
==> ERROR: license should be an array
:: failed to verify postgresql-jdbc integrity

egore911 commented on 2014-12-20 21:09

The following PKGBUILD can be used for the latest driver (9.3_1102) and JDBC 4.1 support:

# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
# Contributor: [Christoph Brill](mailto:egore911@gmail.com)

pkgname=postgresql-jdbc
pkgver=9.3_1102
pkgrel=1
pkgdesc="The official JDBC driver for PostgreSQL. This package contains JDBC3 and JDBC4 drivers."
arch=('any')
url="http://jdbc.postgresql.org/"
license="BSD"
depends=('java-runtime')
source=(http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc3.jar \
http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc4.jar \
http://jdbc.postgresql.org/download/postgresql-${pkgver//_/-}.jdbc41.jar)
noextract=("postgresql-${pkgver//_/-}.jdbc3.jar" "postgresql-${pkgver//_/-}.jdbc4.jar" "postgresql-${pkgver//_/-}.jdbc41.jar")

package() {
mkdir -p $pkgdir/usr/share/java/$pkgname

for f in $srcdir/*; do
install -m644 ${f} $pkgdir/usr/share/java/$pkgname
done

for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/${_version}./}
done
}

md5sums=('28130260a585a6c56c391c9522e04b5b'
'5faefdec7dbd96f72a5b4c428cae4901'
'd45001469e6fc43664b5080fcea731a4')
sha256sums=('bc0d11354b1932eba111fad53f2545b3aa796ebc16c2f49a2eae57d21fc5cbc3'
'092090809bcf94aec9abc0ba6ba471949ad2e5971e7c1fc3777e2bc7ae9ebc3d'
'b78749d536da75c382d0a71c717cde6850df64e16594676fc7cacb5a74541d66')

ur6lad commented on 2012-12-01 07:16

9.2-1002

giddie commented on 2011-12-12 15:26

Is the arch actually restricted to x86 and x86_64, or should this actually be "any"?

ur6lad commented on 2011-11-20 21:42

I see.

9.1_901-2 (Fix noextract)

schuay commented on 2011-11-19 21:33

Yeah the package contents are now fine, because you install both .jar files manually (without using wildcards).
If you look inside $srcdir/ though after a makepkg, you will see that both .jar's are extracted.

So no, noextract doesn't work with wildcards.

ur6lad commented on 2011-11-19 21:26

No, noextract works: jars are not extracted.

On my workstation:

$ pacman -Ql postgresql-jdbc
postgresql-jdbc /usr/
postgresql-jdbc /usr/share/
postgresql-jdbc /usr/share/java/
postgresql-jdbc /usr/share/java/postgresql-jdbc/
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc4.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc4.jar

schuay commented on 2011-11-19 08:09

Thanks. The

noextract=('*.jar')

line is still broken though, noextract doesn't accept wildcards. That's the reason a plain cp $srcdir/* didn't work.

ur6lad commented on 2011-11-18 22:29

9.1_901

schuay commented on 2011-11-18 12:41

Please fix this package.
If it hasn't been updated by Nov 22 (= 2 weeks after pcarrier's comment), it will be orphaned.

teekay commented on 2011-11-12 10:55

This package is broken. cp -R as suggested by pcarrier would still result in broken symlinks and needless install of all .class files

I used this:
package() {
mkdir -p $pkgdir/usr/share/java/$pkgname
cd $pkgdir/usr/share/java/$pkgname

cp $srcdir/*.jar .
cp $srcdir/setClasspath.sh .
for i in *.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${_filename/${_version}./} || return 1
done

}

pcarrier commented on 2011-11-08 15:05

cp $srcdir/* $pkgdir/usr/share/java/$pkgname

has to be replaced with:

cp -r $srcdir/* $pkgdir/usr/share/java/$pkgname

ur6lad commented on 2010-11-13 16:20

9.0-801