1 # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
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"
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')
16 cd $startdir/src/$pkgname-$pkgver
17 sed "s_"BINDIR=/usr/bin"_"BINDIR=$startdir/pkg/usr/bin"_g" < install.sh > install2.sh
19 mkdir -p $startdir/pkg/usr/bin
21 #PATCH: fix conflicting declaration for getline in shsqlinp
23 sed "s_"getline"_"getLine"_g" < shsqlinp.c > shsqlinp.c2
24 mv shsqlinp.c2 shsqlinp.c
27 ./install2.sh postgres mysql sqlite3 odbc tools || return 1