diff options
Diffstat (limited to 'main/mysql/APKBUILD')
-rw-r--r-- | main/mysql/APKBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/mysql/APKBUILD b/main/mysql/APKBUILD index 0bbad2a05d..d668af507d 100644 --- a/main/mysql/APKBUILD +++ b/main/mysql/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mysql -pkgver=5.1.49 +pkgver=5.1.50 pkgrel=0 pkgdesc="A fast SQL database server" url="http://www.mysql.com/" @@ -15,8 +15,16 @@ source="http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL- $pkgname.mycnf" subpackages="$pkgname-doc $pkgname-dev $pkgname-test libmysqlclient $pkgname-client" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd $_builddir + sed -i -e 's/-lnsl //g' configure.in + sed -i -e 's/-lnsl //g' configure +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd $_builddir ./configure --prefix=/usr --libexecdir=/usr/sbin \ --localstatedir=/var/lib/mysql \ --disable-assembler \ @@ -36,7 +44,7 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" + cd $_builddir make -j1 DESTDIR="$pkgdir/" install install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf @@ -79,6 +87,6 @@ client() { done } -md5sums="a90d87a71fa3c23dff6d78afc8e3184c mysql-5.1.49.tar.gz +md5sums="23bac4a0aafd683b077dac146ce2701f mysql-5.1.50.tar.gz 25d08b02bff6aa379dc45859b7a3f28a mysql.initd 15a7e3ddd6a40bf5a1eb3a8c69d9c34c mysql.mycnf" |