# Contributor: Ashton Spencer # Maintainer: Jeff Bilyk pkgname=sqsh pkgver=2.5.16.1 case $pkgver in *.*.*.*) _v=${pkgver%.*.*};; *.*.*) _v=${pkgver%.*};; *) _v=$pkgver;; esac pkgrel=0 pkgdesc="Sybase iSQL replacement" url="http://www.sqsh.org" arch="all" license="GPL" depends="" depends_dev="" makedepends="freetds-dev readline-dev ncurses-dev" install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/sqsh/sqsh/sqsh-$_v/sqsh-$pkgver.tgz" builddir="$srcdir"/$pkgname-$_v prepare() { local i cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$builddir" SYBASE=/usr export SYBASE ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/doc \ --with-readline \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install.man || return 1 } md5sums="8ddbc202f1457a98e9ad74eb54cd668b sqsh-2.5.16.1.tgz" sha256sums="d6641f365ace60225fc0fa48f82b9dbed77a4e506a0e497eb6889e096b8320f2 sqsh-2.5.16.1.tgz" sha512sums="d011d413f5a21059e1b043c75f0a15ea29d10972b59ea980ebcb010b1b0e16eb377a66d21ba4f3ea4433c4deac5ba80b1af7e858129a306a6611de32da48981c sqsh-2.5.16.1.tgz"