blob: 62b97b5a574b5f1cbf94a3e5801005f602bc405b (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.95.0
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
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="7bfcb5c21a9964a0dff62c8a08b7d64d freetds-0.95.0.tar.gz
9b58f810335051cd27939ed3d23549be fix-includes.patch"
sha256sums="249fde284c2cea5cee46946d4afbc1e666d8a9464a196d05967f0b3901830063 freetds-0.95.0.tar.gz
abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch"
sha512sums="a201c51a0c3ab027b6a0bb75b988a55c47ab74c4729e4bb5721c7567eb9d6ef1ea7b350f088c4eaef864b4da624eb3b6d9374659113d59fd5210b71d59c62ecd freetds-0.95.0.tar.gz
bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch"
|