# Maintainer: # Contributor: Felix Golatofski # Contributor: Levente Polyak # Contributor: Sergej Pupykin # Contributor: Douglas Soares de Andrade # Contributor: Benjamin Andresen # Contributor: bekks pkgname=pgadmin3 pkgver=1.22.2 pkgrel=8 pkgdesc='Comprehensive design and management interface for PostgreSQL (legacy)' url='https://www.pgadmin.org' arch=('x86_64') license=('custom') # Dependency wxgtk3 is not supported due to segmentation fault (FS#54676) depends=('wxgtk2' 'postgresql-libs' 'libxslt' 'libgcrypt') makedepends=('libpqxx' 'krb5' 'postgresql' 'imagemagick') validpgpkeys=('E0C4CEEB826B1FDA4FB468E024ADFAAF698F1519') source=(https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${pkgver}/src/pgadmin3-${pkgver}.tar.gz{,.sig} pgadmin3-fix-segfault.patch) sha512sums=('dcfc72cc2e33dbf1c9d1ce287f9d1d46eb047c99a165372cb74ef1716098f90f2ce2a8d0cd21b511a1ac8c0569dc7b3c0593208a74641f5a8f29dc9c04e40bbd' 'SKIP' 'c0fe3d3cc5c1c29f69f3b81b0c78fbe2cf6e484e3ace9e35a3352d93246fc8227047c7c59a168bedfdc7b4f67d3db800c8b1d7cd962d7952436e080a2ea1e083') prepare() { cd ${pkgname}-${pkgver} convert +set date:create +set date:modify pgadmin/include/images/pgAdmin3.ico pgAdmin3.png # Fix segfault at startup (Debian) patch -p1 -i ../pgadmin3-fix-segfault.patch sed -E 's|(Categories=.+)|\1Database;|' -i pkg/pgadmin3.desktop } build() { export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 export PGADMIN_PYTHON_DIR=/usr cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --with-wx-version=3.0 \ --with-libgcrypt make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm 644 i18n/${pkgname}.lng "${pkgdir}/usr/share/pgadmin3/i18n" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 pgadmin/include/images/pgAdmin3.ico -t "${pkgdir}/usr/share/pgadmin3" install -Dm 644 pgAdmin3-1.png "${pkgdir}/usr/share/pgadmin3/pgAdmin3.png" install -Dm 644 pgAdmin3-3.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/pgAdmin3.png" install -Dm 644 pgAdmin3-2.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/pgAdmin3.png" install -Dm 644 pgAdmin3-1.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/pgAdmin3.png" install -Dm 644 pkg/pgadmin3.desktop -t "${pkgdir}/usr/share/applications" } # vim: ts=2 sw=2 et: