aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/mysql/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/main/mysql/APKBUILD b/main/mysql/APKBUILD
index 0bbad2a05d..0201d01dbd 100644
--- a/main/mysql/APKBUILD
+++ b/main/mysql/APKBUILD
@@ -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