aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetds/APKBUILD
blob: 6a254189e6803426b761e88d5b8d2321baa225e8 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=1.00.83
pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL-2.0+, LGPL-2.0+"
makedepends="unixodbc-dev readline-dev linux-headers libressl-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://www.freetds.org/files/stable/$pkgname-$pkgver.tar.gz
	fix-includes.patch
	libressl.patch"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # tests require running SQL server http://www.freetds.org/userguide/confirminstall.htm#TESTS

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-msdblib \
		--with-openssl=/usr \
		--enable-odbc \
		--with-unixodbc=/usr
	make
}

check() {
	cd "$builddir"
	make -C "src/replacements" check
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="6957c5b81ad7863e2fc00f1ae38e28489e98dd487342bd1e4324cb0cc0014e63f24209fd9f5733e3e8128db5ecaec88bc626a195ce5cf0a1fb85da2e4a498b99  freetds-1.00.83.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6  fix-includes.patch
0c1e8d7e2e64551a55fc879173f1f6319fc1c79c8a3225af93ec77e95fac36d05b6b6a8ac79feb11dc7a9b771f38f2dde332efb85f803f4d22aedfb0ced4ab46  libressl.patch"