diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gsql |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gsql')
-rw-r--r-- | community/gsql/PKGBUILD | 33 | ||||
-rw-r--r-- | community/gsql/gsql.install | 24 |
2 files changed, 57 insertions, 0 deletions
diff --git a/community/gsql/PKGBUILD b/community/gsql/PKGBUILD new file mode 100644 index 000000000..f5b721e77 --- /dev/null +++ b/community/gsql/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD,v 1.13 2007/06/19 02:12:51 Snowman Exp $ +# Contributor: Michael Kanis <mkanis@gmx.de> + +pkgname=gsql +pkgver=0.2.2 +pkgrel=2 +pkgdesc="Integrated database development tool for GNOME" +url="http://gsql.org/" +license=('GPL') +arch=('i686' 'x86_64') +depends=('gtk2>=2.12' 'gtksourceview2' 'vte' 'libgnomeui' 'gconf' 'desktop-file-utils') +makedepends=('libmysqlclient' 'postgresql-libs' 'libssh') +optdepends=('libmysqlclient' 'postgresql-libs' 'libssh') +install=gsql.install +options=(!libtool) +source=(http://gsql.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2) +md5sums=('8f3322a75390584729e84a8570e08bea') +sha1sums=('cb4081a5e232e5eb14a22f94ae2293aca73b9837') + +build() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's/notify_notification_new (subj, message, NULL, NULL);/notify_notification_new (subj, message, NULL);/' libgsql/notify.c + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" "${pkgdir}"/etc/gconf/schemas/*.schemas + rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas +} diff --git a/community/gsql/gsql.install b/community/gsql/gsql.install new file mode 100644 index 000000000..e069ea8fc --- /dev/null +++ b/community/gsql/gsql.install @@ -0,0 +1,24 @@ +pkgname=gsql + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |