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