summaryrefslogtreecommitdiff
path: root/community/tora
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/tora
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/tora')
-rw-r--r--community/tora/PKGBUILD24
-rw-r--r--community/tora/tora.install20
2 files changed, 44 insertions, 0 deletions
diff --git a/community/tora/PKGBUILD b/community/tora/PKGBUILD
new file mode 100644
index 000000000..2c0b2e774
--- /dev/null
+++ b/community/tora/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 31857 2010-11-06 19:23:22Z angvp $
+# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+pkgname=tora
+pkgver=2.1.3
+pkgrel=1
+pkgdesc="Toolkit for databases with support for MySQL and PostgreSQL"
+arch=('i686' 'x86_64')
+url="http://tora.sourceforge.net"
+license=('GPL')
+depends=('qscintilla')
+makedepends=('cmake')
+options=('!libtool' '!emptydirs')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('ea4a75a9daeaf58492413e3f7fe40293')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/
+ make
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/tora/tora.install b/community/tora/tora.install
new file mode 100644
index 000000000..260f3960f
--- /dev/null
+++ b/community/tora/tora.install
@@ -0,0 +1,20 @@
+# Thanks to: Serge Gielkens (Teld) for this bugfix
+infodir=/usr/share/info
+filelist=(tora.info)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+