blob: 5dacae5f1497888eabc0af25667dbd137f6bdce0 (
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
53
54
55
56
57
58
59
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.92.79
pkgrel=1
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL"
depends=
makedepends="unixodbc-dev readline-dev libtool autoconf automake
linux-headers"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
freetds-libiconv.patch
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
aclocal -I m4 && autoconf && automake --add-missing
}
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
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="b97e9bdd3f461af3e8ea559404582f70 freetds-0.92.79.tar.gz
d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch
9b58f810335051cd27939ed3d23549be fix-includes.patch"
sha256sums="06b9b3fe797552d93365f1f1f84051f6c292bb0f9fca06a3475852700cf71f50 freetds-0.92.79.tar.gz
8616c79ec80db274200f27028c2a6ec616f9e6494d2cb2591f7bd3c4575c7677 freetds-libiconv.patch
abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch"
sha512sums="d5ede1312ee0c5ad4ed787c243a5e3242f25e4470d9201922df5736883c1c4652fa3483544dc78a945c37d006b173ffa35ba5a0ecfbb67a68b046667a7b51236 freetds-0.92.79.tar.gz
1dd76053477a23428355a704b0b0d5ee652e4c55d4beb46c43ab8c5d5d0eaa6d29accc4a8a1c41e42f4ac20521549b8d6c379773106d6d46299e96ba45a045ce freetds-libiconv.patch
bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch"
|