Date: Monday, October 1, 2018 @ 15:33:46 Author: anthraxx Revision: 388892
upgpkg: pgadmin3 1.22.2-7 (reproducible builds fix) Modified: pgadmin3/trunk/PKGBUILD ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-01 15:10:39 UTC (rev 388891) +++ PKGBUILD 2018-10-01 15:33:46 UTC (rev 388892) @@ -1,14 +1,15 @@ -# Maintainer: Sergej Pupykin <[email protected]> -# Maintainer: Douglas Soares de Andrade <[email protected]> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Sergej Pupykin <[email protected]> +# Contributor: Douglas Soares de Andrade <[email protected]> # Contributor: Benjamin Andresen <[email protected]> # Contributor: bekks <[email protected]> pkgname=pgadmin3 pkgver=1.22.2 -pkgrel=6 -pkgdesc="Comprehensive design and management interface for PostgreSQL" +pkgrel=7 +pkgdesc='Comprehensive design and management interface for PostgreSQL' +url='https://www.pgadmin.org' arch=('x86_64') -url="http://www.pgadmin.org" license=('custom') # Dependency wxgtk3 is not supported due to segmentation fault (FS#54676) depends=('wxgtk2' 'postgresql-libs' 'libxslt' 'libgcrypt') @@ -21,33 +22,36 @@ 'b175869b77bcbfa43f1bc256277966882789883792c4f9dd26038ec248def6a2') prepare() { - cd "$srcdir" - convert pgadmin3-${pkgver}/pgadmin/include/images/pgAdmin3.ico pgAdmin3.png - + cd ${pkgname}-${pkgver} + convert +set date:create +set date:modify pgadmin/include/images/pgAdmin3.ico pgAdmin3.png # Fix segfault at startup (Debian) - cd $pkgname-$pkgver patch -p1 -i ../pgadmin3-fix-segfault.patch + sed -E 's|(Categories=.+)|\1Database;|' -i pkg/pgadmin3.desktop } build() { - cd "$srcdir"/pgadmin3-${pkgver} - ./configure --prefix=/usr --with-wx-version=3.0 --with-libgcrypt + cd ${pkgname}-${pkgver} + ./configure \ + --prefix=/usr \ + --with-wx-version=3.0 \ + --with-libgcrypt make } package() { - cd "$srcdir"/pgadmin3-${pkgver} + cd ${pkgname}-${pkgver} - make DESTDIR="$pkgdir/" install - install -Dm644 i18n/$pkgname.lng "$pkgdir/usr/share/pgadmin3/i18n" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + 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 -Dm644 pgadmin/include/images/pgAdmin3.ico "$pkgdir/usr/share/pgadmin3/pgAdmin3.ico" - install -Dm644 "$srcdir/pgAdmin3-1.png" "$pkgdir/usr/share/pgadmin3/pgAdmin3.png" + 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 -Dm644 "$srcdir/pgAdmin3-3.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/pgAdmin3.png" - install -Dm644 "$srcdir/pgAdmin3-2.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/pgAdmin3.png" - install -Dm644 "$srcdir/pgAdmin3-1.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/pgAdmin3.png" + install -Dm 644 pkg/pgadmin3.desktop -t "${pkgdir}/usr/share/applications" +} - install -Dm644 "pkg/pgadmin3.desktop" "$pkgdir/usr/share/applications/pgadmin3.desktop" -} +# vim: ts=2 sw=2 et:
