diff options
author | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
commit | c34f78dd37c2a2015d43de5d89748a2f8147ba1b (patch) | |
tree | 2e3912930db02e8f8cbfa8a58eae203b886fa2d9 /community-testing/gsql | |
parent | 902eddd7e029eda6fc1c668b31e696c6ca3edbc7 (diff) |
Tue Jan 31 23:14:56 UTC 2012
Diffstat (limited to 'community-testing/gsql')
-rw-r--r-- | community-testing/gsql/PKGBUILD | 33 | ||||
-rw-r--r-- | community-testing/gsql/gsql.install | 24 |
2 files changed, 57 insertions, 0 deletions
diff --git a/community-testing/gsql/PKGBUILD b/community-testing/gsql/PKGBUILD new file mode 100644 index 000000000..e5cc0b0eb --- /dev/null +++ b/community-testing/gsql/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 63152 2012-01-30 18:59:26Z ibiru $ +# Contributor: Michael Kanis <mkanis@gmx.de> + +pkgname=gsql +pkgver=0.2.2 +pkgrel=4 +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' 'libnotify') +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') + +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-testing/gsql/gsql.install b/community-testing/gsql/gsql.install new file mode 100644 index 000000000..e069ea8fc --- /dev/null +++ b/community-testing/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 +} |