summaryrefslogblamecommitdiff
path: root/system/libuv/APKBUILD
blob: 30dfc1ed6a739a698afc6ed4002a9c98cd2af21e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13



                                                               
             







                                                                     
                                      


































                                                             

                                                                                                                                                                  
                                                                                                                                                            
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Conttributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libuv
pkgver=1.23.0
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
url="http://libuv.org"
arch="all"
license="MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC"
makedepends="automake autoconf libtool linux-headers"
subpackages="$pkgname-dev"
source="https://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz
	disable-process-priority.patch
	disable-setuid-test.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	sh autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="1fe36cf285bdcfee485633e095e731999485ea156f07769c0ff277df5e4e1314c434021b4b697cef8e7e7e4299b24b7ee837f3f6348b27b300feb6e6c2781e4d  libuv-v1.23.0.tar.gz
58bc259a0f703fa6b8dda14909f718e14dfb9ddc9039ae13378f7e32e0ff7096774cbfb2964a0abb06f8a64a71cf298cc77b7475927df0fb50ce3f0e414a7787  disable-process-priority.patch
478d25c8905cd393b9ced0f1b16e70794a7ef20fb9eb212fd74e50beca3f5a33a6a5267616abecf470426ed3d00efec51df468745ff43c0de05c0ad8234f1eb3  disable-setuid-test.patch"