blob: 542e329dd3b42a56eeb26a7b898f642212539f56 (
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
47
48
49
50
51
52
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.95.79
pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL"
depends=
makedepends="unixodbc-dev readline-dev linux-headers"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
fix-includes.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-msdblib \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
}
md5sums="fdced2c6c758a5ac95c7139c635d4327 freetds-0.95.79.tar.gz
9b58f810335051cd27939ed3d23549be fix-includes.patch"
sha256sums="b56fbf7c24b001288718e434f15849af39610c3451583c6712fb9674c43c6599 freetds-0.95.79.tar.gz
abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch"
sha512sums="ed64b855ed6d212d6d7119037a7f467731e855a380760540306a0f9793e0d0c3f79f7e59a0481506ae6efb815e71c8e062138b39eb1530fe5d4a1e8ae7105b54 freetds-0.95.79.tar.gz
bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch"
|