summaryrefslogtreecommitdiff
path: root/user/freetds/APKBUILD
blob: 07145e5b92197f26c2ef308f6a7c7fe4ea85add0 (plain) (blame)
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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=freetds
pkgver=1.00.111
pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="LGPL-2.0+"
depends=""
makedepends="linux-headers openssl-dev unixodbc-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
	fix-includes.patch"

build() {
	./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() {
	make -C "src/replacements" check
}

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

sha512sums="c7f0886aaa83ee626c9738486ebc256f6fbae297a1e152848c2fba8954661d3ee74278f40c781f2c25eb11f2df38e833031126017555b827115f6cd9163cf771  freetds-1.00.111.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6  fix-includes.patch"