aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetds/APKBUILD
blob: 0b26049638c9f123352d8b4a402a05a841e90100 (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: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.95.21
pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL"
depends=
makedepends="unixodbc-dev readline-dev linux-headers"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
	fix-includes.patch"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-msdblib \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="90690b8f2f270151092009b71fe9b590  freetds-0.95.21.tar.gz
9b58f810335051cd27939ed3d23549be  fix-includes.patch"
sha256sums="249ab1018642b12d0a2cf6d75d89c1ed89115a4717113e9b753d2dacb93392f8  freetds-0.95.21.tar.gz
abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44  fix-includes.patch"
sha512sums="b7222341d406896a295062422de6d3351de98ec1b1d6e8604e69838c3a3cc269a868d35f929dc7792fd36bd7364475eb740c3d5b74f4ec5c59c12a91a8678f92  freetds-0.95.21.tar.gz
bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa  fix-includes.patch"