aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iojs/APKBUILD
blob: 7d3904b46ec6b671ba87aec02cb869bf9198f79f (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
41
# Contributor: Bryce Kahle <bkahle@gmail.com>
# Contributor: Vlad Frolov <frolvlad@gmail.com>
# Maintainer:
pkgname=iojs
pkgver=2.2.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 paxmark 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
	paxmark -m "$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="90cff44c806e068f5d3c08a1258cc425  iojs-v2.2.1.tar.xz"
sha256sums="26cce6e3581185ef3b1fe486a86ba9e18d611f6dfe439cfcbcfc8e639436a5bd  iojs-v2.2.1.tar.xz"
sha512sums="6ca0e93b1c5ebb05213d19341bf60087d1b362537e6cfee216b2166e95fec7bb7b98b716d21bf0e51e28f27fb27b0c48ecd045c6b28c0d5d9a474a49e28dc7c5  iojs-v2.2.1.tar.xz"