blob: 1b53f46cdb78a117f6d88b6a7b6371060aa9d46c (
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=1.00
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="73f5596c9cf83487296bf0d6d6532806 freetds-1.00.tar.gz
7f9a141d81a89fe29adb5060ae83f80b fix-includes.patch"
sha256sums="604ff9fe95bf5e2e650f8648b19ae488959269a4274e95dc17e3b66f29779a9b freetds-1.00.tar.gz
43a4dca384eaa0077b3f0b1daba969414b43af14c17592e001d10bbb6ac54c88 fix-includes.patch"
sha512sums="713aec9ac7952aa70a3e7f5fe3ab2d9be7b19511f1d58cf3397e80f99f155835508d9a7bf8dad37f64f07bc1c78258df3f17f3049f89e32cd2d654fd3b689bb4 freetds-1.00.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6 fix-includes.patch"
|