# $Id: PKGBUILD 97840 2013-09-30 10:03:39Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Douglas Soares de Andrade # Contributor: Benjamin Andresen # Contributor: bekks pkgname=pgadmin3 pkgver=1.18.0 pkgrel=2 pkgdesc="Comprehensive design and management interface for PostgreSQL" arch=('i686' 'x86_64' 'mips64el') url="http://www.pgadmin.org" license=('custom') depends=('wxgtk' 'postgresql-libs' 'libxslt') makedepends=('libpqxx' 'krb5' 'postgresql' 'imagemagick') _categories="Development;Application" source=(http://ftp.postgresql.org/pub/pgadmin3/release/v${pkgver}/src/pgadmin3-${pkgver}.tar.gz) md5sums=('ed1968a9abda0064be68bf57d7ccad43') build() { cd "$srcdir" convert pgadmin3-${pkgver}/pgadmin/include/images/pgAdmin3.ico pgadmin3.png cp pgadmin3-3.png pgadmin3.png cd "pgadmin3-${pkgver}" [ -f Makefile ] || ./configure --prefix=/usr make } package() { cd $srcdir/pgadmin3-${pkgver} make DESTDIR=$pkgdir/ install install -Dm644 i18n/$pkgname.lng $pkgdir/usr/share/pgadmin3/i18n install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE install -Dm644 pgadmin/include/images/pgAdmin3.ico $pkgdir/usr/share/pgadmin3/pixmaps/pgAdmin3.ico install -Dm644 "$srcdir/pgadmin3.png" "$pkgdir/usr/share/pixmaps/pgadmin3.png" install -Dm644 "pkg/pgadmin3.desktop" "$pkgdir/usr/share/applications/pgadmin3.desktop" }