updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / shellsql / PKGBUILD
blobddcac6054ae1fa7aee8237054c406e310b931af5
1 # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
3 pkgname=shellsql
4 pkgver=0.7.7
5 pkgrel=1
6 pkgdesc="ShellSQL is a suite of programs designed to enable LINUX/UNIX shell scripts to connect to SQL engines and execute SQL queries and commands in a simple way enabling intergration with the rest of the script, support DB: postgres, mysql, sqlite3 and odbc"
7 url="http://shellsql.sourceforge.net"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('glibc' 'gcc')
11 optdepends=('postgresql' 'mysql' 'sqlite3')
12 source=(http://sourceforge.net/projects/shellsql/files/shellsql/$pkgver/shellsql-$pkgver.tgz/download)
13 md5sums=('5b9e714048aa892d312408f401b5bc62')
15 build() {
16   cd $startdir/src/$pkgname-$pkgver
17   sed "s_"BINDIR=/usr/bin"_"BINDIR=$startdir/pkg/usr/bin"_g" < install.sh > install2.sh
18   chmod +x install2.sh
19   mkdir -p $startdir/pkg/usr/bin
20   
21   #PATCH: fix conflicting declaration for getline in shsqlinp
22   cd src/
23   sed "s_"getline"_"getLine"_g" < shsqlinp.c > shsqlinp.c2
24   mv shsqlinp.c2 shsqlinp.c
25   cd ..
26   
27   ./install2.sh postgres mysql sqlite3 odbc tools || return 1