APKBUILD 1.29 KB
Newer Older
1 2 3
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
4
pkgver=1.1.12
5
pkgrel=0
6
pkgdesc="Tabular Datastream Library"
7
url="https://www.freetds.org"
8
arch="all"
prspkt's avatar
prspkt committed
9
license="GPL-2.0-or-later, LGPL-2.0-or-later"
10
makedepends="openssl-dev linux-headers readline-dev unixodbc-dev"
11
subpackages="$pkgname-doc $pkgname-dev"
12
source="https://www.freetds.org/files/stable/$pkgname-$pkgver.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
13
	fix-includes.patch
14
	"
15
builddir="$srcdir/$pkgname-$pkgver"
Andy Postnikov's avatar
Andy Postnikov committed
16
options="!check"  # tests require running SQL server http://www.freetds.org/userguide/confirminstall.htm#TESTS
17

Natanael Copa's avatar
Natanael Copa committed
18
build() {
19
	cd "$builddir"
20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
24 25
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
26
		--infodir=/usr/share/info \
27 28 29 30
		--enable-msdblib \
		--with-openssl=/usr \
		--enable-odbc \
		--with-unixodbc=/usr
31
	make
32 33
}

34
check() {
prspkt's avatar
prspkt committed
35 36
	cd "$builddir"/src/replacements
	make check
37 38
}

39
package() {
40
	cd "$builddir"
41
	make -j1 DESTDIR="$pkgdir" install
42 43
}

44
sha512sums="37f70397c70668aaddea83b77e2199ff4ba9a88c23e4189dae9fb4333f9bd7ef200ca5aaa7962c795a6eeb26dd47caa36ee5cc9684e42a0fa7097807fb3e82f8  freetds-1.1.12.tar.bz2
45
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6  fix-includes.patch"