aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetds/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:21:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:39:40 +0000
commitc4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057 (patch)
tree8882a146d3da54db2c3e583a9b1b3f957b1c2467 /main/freetds/APKBUILD
parent09bf2b2e02a1f1bac5548ca79ce4b02e4ce7fd76 (diff)
downloadaports-c4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057.tar.bz2
aports-c4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057.tar.xz
main/freetds: upgrade to 0.91
Diffstat (limited to 'main/freetds/APKBUILD')
-rw-r--r--main/freetds/APKBUILD33
1 files changed, 23 insertions, 10 deletions
diff --git a/main/freetds/APKBUILD b/main/freetds/APKBUILD
index 0475ff86dc..dc53764eb6 100644
--- a/main/freetds/APKBUILD
+++ b/main/freetds/APKBUILD
@@ -1,33 +1,46 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
-pkgver=0.82
-pkgrel=9
+pkgver=0.91
+pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL"
depends=
-makedepends="unixodbc-dev readline-dev libiconv-dev libtool"
+makedepends="unixodbc-dev readline-dev libiconv-dev libtool autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-dev"
-source="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/$pkgname-$pkgver.tar.gz"
+source="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/$pkgname-$pkgver.tar.gz
+ freetds-libiconv.patch"
+_builddir="$srcdir/$pkgname-$pkgver"
-build() {
- cd "$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
+ aclocal -I m4 && autoconf && automake
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --enable-msdblib
+ --enable-msdblib \
+ || return 1
make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
-md5sums="3df6b2e83fd420e90f1becbd1162990a freetds-0.82.tar.gz"
+md5sums="b14db5823980a32f0643d1a84d3ec3ad freetds-0.91.tar.gz
+d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch"