aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-01-15 12:49:00 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-01-15 12:49:00 +0100
commit2a2bf34e4444101f99814a6eab97383166cf139c (patch)
tree96e8427282beb1f54be1a814d5ee90d233885f74 /main/libuv/APKBUILD
parent7250d88a6f49c2a684185d25a18337831cc75266 (diff)
downloadaports-2a2bf34e4444101f99814a6eab97383166cf139c.tar.bz2
aports-2a2bf34e4444101f99814a6eab97383166cf139c.tar.xz
main/libuv: improve abuild
Diffstat (limited to 'main/libuv/APKBUILD')
-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