Skip to content

Commit

Permalink
update mingw32-postgresql-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ant32 committed Apr 30, 2013
1 parent 5f683af commit 447e2b4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions mingw32-postgresql-libs/PKGBUILD
Expand Up @@ -2,21 +2,23 @@

pkgname=mingw32-postgresql-libs
pkgver=9.2.4
pkgrel=1
pkgrel=2
pkgdesc="Libraries for use with PostgreSQL (mingw32)"
arch=('any')
url="http://www.postgresql.org/"
license=('custom:PostgreSQL')
depends=('mingw32-runtime')
#depends=('krb5' 'openssl>=1.0.0' 'readline>=6.0')
depends=('mingw32-runtime' 'mingw32-openssl')
makedepends=('mingw32-gcc')
source=(http://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
options=('!strip' '!buildflags')
md5sums=('6ee5bb53b97da7c6ad9cb0825d3300dd')

build() {
cd "${srcdir}/postgresql-${pkgver}"
./configure --host=i486-mingw32 --prefix=/usr/i486-mingw32
./configure \
--host=i486-mingw32 \
--prefix=/usr/i486-mingw32 \
--with-openssl
}

package() {
Expand All @@ -26,6 +28,11 @@ package() {
for dir in src/interfaces src/bin/pg_config src/bin/psql; do
make -C ${dir} DESTDIR="${pkgdir}" install
done
mv "$pkgdir/usr/i486-mingw32/lib/"*.dll "$pkgdir/usr/i486-mingw32/bin/"
find "$pkgdir/usr/i486-mingw32" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' | xargs -rtl1 rm
find "$pkgdir/usr/i486-mingw32" -name '*.dll' | xargs -rtl1 i486-mingw32-strip -x
find "$pkgdir/usr/i486-mingw32" -name '*.a' -o -name '*.dll' | xargs -rtl1 i486-mingw32-strip -g
rm -r "$pkgdir/usr/i486-mingw32/share"

cd src/include

Expand Down

0 comments on commit 447e2b4

Please sign in to comment.