# Contributor: Michael Mason # Maintainer: Michael Mason pkgname=freetds pkgver=1.00.84 pkgrel=1 pkgdesc="Tabular Datastream Library" url="http://www.freetds.org" arch="all" license="GPL-2.0-or-later, LGPL-2.0-or-later" makedepends="libressl-dev linux-headers readline-dev unixodbc-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"/src/replacements make check } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install } sha512sums="f5ff563132f19c48789ae559ee98adb33829f495da29c95deada6ff841b3e9bcef470e128fe1c38f8dec9d11e9507ef8bac0c7e17f312c3454c8690a0506f6ed freetds-1.00.84.tar.gz d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6 fix-includes.patch 2031cc9a7dac2b36d2b2b715c11a336a7a6ce05a5d4ccfcd714a8e2de0607da82bb867106872f54f9dd8fbf6118f67e19546ef7174fed585e14110b69d81ad4d libressl.patch"