Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] testing/node-sodium: new aport

From: Leonardo Arena <rnalrd_at_gmail.com>
Date: Fri, 06 Jan 2017 10:30:01 +0100

Hi,
thank you for your contribution.

Please see comment below.

On gio, 2017-01-05 at 20:27 -0600, Corey Oliver wrote:
> ---
>  testing/node-sodium/APKBUILD                | 52
> +++++++++++++++++++++++++++++
>  testing/node-sodium/fix-gyp-binding.patch   | 11 ++++++
>  testing/node-sodium/remove-preinstall.patch | 10 ++++++
>  3 files changed, 73 insertions(+)
>  create mode 100644 testing/node-sodium/APKBUILD
>  create mode 100644 testing/node-sodium/fix-gyp-binding.patch
>  create mode 100644 testing/node-sodium/remove-preinstall.patch
>
> diff --git a/testing/node-sodium/APKBUILD b/testing/node-
> sodium/APKBUILD
> new file mode 100644
> index 0000000..1ea95ac
> --- /dev/null
> +++ b/testing/node-sodium/APKBUILD
> _at_@ -0,0 +1,52 @@
> +# Contributor: Corey Oliver <coreyjonoliver_at_gmail.com>
> +# Maintainer: Corey Oliver <coreyjonoliver_at_gmail.com>
> +pkgname=node-sodium
> +_pkgname=sodium
> +pkgver=1.2.3
> +pkgrel=0
> +pkgdesc="Port of the lib sodium encryption library to Node.js"
> +url="https://github.com/paixaop/node-sodium"
> +arch="all"
> +license="MIT"
> +depends="nodejs libsodium=1.0.11-r0"
> +makedepends="libsodium-dev=1.0.11-r0 python2"
> +source="$pkgname-$pkgver.tar.gz::https://github.com/paixaop/$pkgname
> /archive/$pkgver.tar.gz
> +fix-gyp-binding.patch
> +remove-preinstall.patch
> +"
> +builddir="$srcdir/$pkgname-$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
> +}


abuild "default_prepare" function does this for you now. Make sure to
keep "return 1" though.

Thanks!

-|_eo





---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Jan 06 2017 - 10:30:01 GMT