aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqsh/APKBUILD
blob: ae1808f5101562c2661bab9846a04adacc7f009f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Ashton Spencer <aspec.451@gmail.com>
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=sqsh
pkgver=2.4
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-$pkgver/sqsh-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	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="0ad6cc9452d3257866ccde5f14ffa013  sqsh-2.4.tgz"
sha256sums="f3e1e3c1b142a369bf7db4411db10d8f2d010d787abbc95c8227af1c19b22ec8  sqsh-2.4.tgz"
sha512sums="6d9b7edab4e26b072dd894c5bce67d9f9670ec7dca658c6d366a0419a1c52ad9b7800750af1c7b702072f359b0efa01a699d5722b996bcd513dfa049b922f9fb  sqsh-2.4.tgz"