aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iojs/APKBUILD
blob: 4fc442a6fe2b918ab6df024504d27280a3bfb8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Bryce Kahle <bkahle@gmail.com>
# Maintainer:
pkgname=iojs
pkgver=1.5.1
pkgrel=0
pkgdesc="JavaScript I/O"
url="https://iojs.org"
arch="all"
license="MIT"
makedepends="$depends_dev gcc make python openssl-dev zlib-dev paxctl linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://iojs.org/dist/v$pkgver/iojs-v$pkgver.tar.xz"

_builddir="$srcdir"/iojs-v$pkgver
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--shared-openssl \
		--shared-zlib || return 1
	make || return 1
}

package() {
	local d

	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	paxctl -cm "$pkgdir"/usr/bin/iojs || return 1

	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

	cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share || return 1
	for d in doc html man; do
		rm -r "$pkgdir"/usr/lib/node_modules/npm/$d || return 1
	done
}

md5sums="5fcdbf055c4670ee030110dd726eeeda  iojs-v1.5.1.tar.xz"
sha256sums="edf7fe994b72f70cc2c8e6d971ad94f576cdb36b2be008471e5b0d3af61a77fc  iojs-v1.5.1.tar.xz"
sha512sums="97aecf0b5e36c0692f3220f3bdddcc901218ae0dd04ddcb408c5767f985e6b4e601849b835f74b66579010f8b6fdf372f48209682d16f5675ac087762801ef33  iojs-v1.5.1.tar.xz"