summaryrefslogblamecommitdiff
path: root/user/freetds/APKBUILD
blob: e857bc2c5b5fa9ba54b935cb5dd25932884e3f5d (plain) (tree)
1
2
3
4


                                                 
              





































                                                                        
                                                                                                                                                                    
                                                                                                                                                     
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=freetds
pkgver=1.00.97
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"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
	fix-includes.patch"

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="4e185f96e77735675cf5a3d49d85da27f6813a34cd82fdc6ac534dd67d2d5f624855c5c1dc0d60dcd022bcd1a226fe19148bfca09ff83a322ebd24a70d064cb2  freetds-1.00.97.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6  fix-includes.patch"