aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iojs/APKBUILD
blob: ce739485ccdf9a04898871953a2afb22ab31d0b7 (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.6.2
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="e4d0a3281a6fd25f80135e7ce26066c1  iojs-v1.6.2.tar.xz"
sha256sums="0015db12ebc7bdef4c44d88af08c964dea5fbf45a6e1218ed5ce26a275a4d3c6  iojs-v1.6.2.tar.xz"
sha512sums="03a9dabdb5cfdf858f34acd0ca6442bf065eb7f098e117771eda3e528e9629bc4c76a260c0bcdcc07f4c02ca851118e926f4c510556477a79c69464f910b75ff  iojs-v1.6.2.tar.xz"