summaryrefslogtreecommitdiffstats
path: root/main/sqsh/APKBUILD
blob: 339be54d3fb52e35d939efc3a45a1be54d7c056d (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
53
54
55
56
# Contributor: Ashton Spencer <aspec.451@gmail.com>
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=sqsh
pkgver=2.4
pkgrel=1
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
	readline-6.3.patch"

_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
741e42e85e0cd80233931c0cb815aef6  readline-6.3.patch"
sha256sums="f3e1e3c1b142a369bf7db4411db10d8f2d010d787abbc95c8227af1c19b22ec8  sqsh-2.4.tgz
b453e37fd41835bf81d55ca74b64891655795d7f643106f3cf0602ce2e921a62  readline-6.3.patch"
sha512sums="6d9b7edab4e26b072dd894c5bce67d9f9670ec7dca658c6d366a0419a1c52ad9b7800750af1c7b702072f359b0efa01a699d5722b996bcd513dfa049b922f9fb  sqsh-2.4.tgz
5105895b9583f3043ba91cdbb857136acd2176f596f173c0c9440810f774fbb6d9e15cc35474527a7ac68612d49568f995c198f3833ddd8c583e4b77baf03097  readline-6.3.patch"