X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 4DE4BDC0D35 for ; Mon, 29 Feb 2016 19:09:50 +0000 (UTC) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 021E2DC0080 for ; Mon, 29 Feb 2016 19:09:49 +0000 (UTC) Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 8A4AE1A1A1C for ; Mon, 29 Feb 2016 19:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1456772988; bh=ZSiiFgTUzIo3cZf7k61/rbbRk+PDEeq52Bwprlz8MVE=; h=Date:From:To:Subject:From; b=NEPewbkj5fvlfKaPOR1ANnV4TPgw+/56d6UdZMTunDEoOCKQ0VRQOaDrnE/LCLfGU xrRyH+LvPGhARi4ntPhiotvHUPu9WasldVVVhkmZoD2tNsjZ2iEThB5Y8M2D2UIodG XZIuoxgNWX0s+ouYSUMD4pnLvgrd/AdEHFcpUa1A= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ghostbar) with ESMTPSA id E715A4003C Date: Mon, 29 Feb 2016 14:09:42 -0500 From: Jose-Luis Rivas To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/nodejs-stable: new aport Message-ID: <20160229190942.GA6571@riseup.net> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable We have the LTS release on main/nodejs and the new features are being added to the stable release which is at v5.7.0 (vs v4.3.1 for LTS). There's a replace against nodejs so there's no conflicts when someone tries to install them together. --- testing/nodejs-stable/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 50 insertions(+) create mode 100644 testing/nodejs-stable/APKBUILD diff --git a/testing/nodejs-stable/APKBUILD b/testing/nodejs-stable/APKBUILD new file mode 100644 index 0000000..79bd31f --- /dev/null +++ b/testing/nodejs-stable/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: Jose-Luis Rivas +pkgname=3Dnodejs-stable +pkgver=3D5.7.0 +pkgrel=3D0 +pkgdesc=3D'Evented I/O for V8 javascript' +url=3D'https://nodejs.org/' +arch=3D'all' +license=3D'MIT' +makedepends=3D"$depends_dev python openssl-dev zlib-dev libuv-dev + linux-headers binutils-gold paxmark" +subpackages=3D"$pkgname-dev $pkgname-doc" +source=3D"https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz" +replaces=3D"nodejs" +_builddir=3D"$srcdir/node-v$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case "$i" in + *.patch) msg "$i"; patch -p1 -i "$srcdir/$i" || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=3D/usr \ + --shared-zlib \ + --shared-libuv \ + --shared-openssl || return 1 + make || return 1 +} + +package() { + local d + cd "$_builddir" + make DESTDIR=3D"$pkgdir" install || return 1 + # paxmark so JIT works + paxmark -m "$pkgdir"/usr/bin/node || return 1 + + cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share || retu= rn 1 + for d in doc html man; do + rm -r "$pkgdir"/usr/lib/node_modules/npm/$d || return 1 + done +} + +md5sums=3D"8ab282434c79bedcfd20c0b74f66e38e node-v5.7.0.tar.gz" +sha256sums=3D"2338b46a2f45fbb747089c66931f62555f25a5928511d3a43bbb3a39dcde= d2d8 node-v5.7.0.tar.gz" +sha512sums=3D"82ff8d6339c0b065684f02f79bb739365eda3110f8e69e9296453eb5a635= 84c978d93c87d8ef2350498abaa7b16cabfa62954dce401e82730cac61d6af62f8fe node-= v5.7.0.tar.gz" --=20 2.7.2 --=20 =E2=A8=B3 PGP 0x13EC43EEB9AC8C43 =E2=A8=B3 https://ghostbar.co --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW1Jd2AAoJEPAe+gXRgGsPPtIQALZiwStQjWIe3IZQNj2VgyV0 TGUsdue+nZ8M2YdPEt9p2NRzqUJQ1QScS0r1RPq8Kcf3iauzQR/m+u5tNBljPZHX KKv9aOQUlHaX3W95G4YKvNuJxhGIFMVw9Bra9GuubulrOTqYfzPUEg8Hks+3dESf aEhC2MbC0LCNRre9gBgoCvW+nhAXZsqK2SNWBmjjaKqan57SrngvTHZVc/+2nfqx 6jaUp11I5TyVfVAPg8swLlU9ePkqyO6wIUgGYb0BVzaSs7y1lF5C4uKTJOK4su8j trQBkPR4oEmxn7Z/m6ZrIAoRbOSFUdErGqbMqhSmoN6QGf7ON4GbPzD3MuBxbmKl 91vHa4zZwScZpusfP367ufq0b5QpXf9pl6gTG1zl2zb0mpIfNbz0i8nxTY4mXLHp cC56Idqn+7FLjspKMbrprAP8jiZtyTQqTuJBOG1U64aVH7/5OuzQKrLktVREJ+bp kGjq4Y5oDDcgIz96bJeZDu5xblWTT0ZpDJSQS907dPieLGrYV3oNObPNdsfaPPiU lBbosxhTPpC6h71tX1U+rCApFBT1NCTASXJqeZCHTA8zzL8TM1nYsZh/bwJMQuTz 6aCSTQH0oHGzdv5ZQceroW2uPY/XKJ0Pj5H460G35GSzP0hOqo5yCjygn1q00+NQ V/wXzqkEVfpSK7SagkTt =VK7U -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---