blob: e53be411f24202008f164d890c7433759cea5674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer:
# Contributor: Vladislav Glinsky <cl0ne@mithril.org.ua>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# Contributor: Benjamin Andresen <benny@klapmuetz.org>
# Contributor: bekks <eduard.warkentin@gmx.de>
pkgname=pgadmin3
pkgver=1.22.2
pkgrel=9
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
sed -i 's/-fno-plt/-fno-plt -Wno-narrowing/' pgadmin/Makefile
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:
|