aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/libuv/APKBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/main/libuv/APKBUILD b/main/libuv/APKBUILD
index 94c7f25337..42e632492e 100644
--- a/main/libuv/APKBUILD
+++ b/main/libuv/APKBUILD
@@ -8,21 +8,20 @@ pkgdesc="Cross-platform asychronous I/O"
url="http://libuv.org"
arch="all"
license="MIT BSD ISC"
-depends=""
-depends_dev=""
makedepends="automake autoconf libtool linux-headers"
-install=""
subpackages="$pkgname-dev"
source="http://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-v$pkgver"
-_builddir="$srcdir"/$pkgname-v$pkgver
prepare() {
- cd "$_builddir"
+ default_prepare || return 1
+
+ cd "$builddir"
sh autogen.sh || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,7 +34,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE