blob: f7add701e6b0ef0a50a2cc16bef53f0d2517a3a5 (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=1.00.24
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"
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="1928a545a487db9db73d9e47bb94086f freetds-1.00.24.tar.gz
7f9a141d81a89fe29adb5060ae83f80b fix-includes.patch"
sha256sums="5e1e0f207fc79673e6b94b46ce14ba2d69c65442bab9191257b4bf1dc521aa6d freetds-1.00.24.tar.gz
43a4dca384eaa0077b3f0b1daba969414b43af14c17592e001d10bbb6ac54c88 fix-includes.patch"
sha512sums="35389a7206ceaee56e7dbec659f4aefc78514dc2e1b577837c7eb9b195c5f9f0f097a51585c30e01656f5703e09d379e74f692843fdcba77b44f813ea9a872fd freetds-1.00.24.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6 fix-includes.patch"
|