X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.alpinelinux.org (Postfix) with ESMTP id 5152A5C6634 for ; Tue, 20 Nov 2018 20:26:06 +0000 (GMT) Received: by mail-wr1-f68.google.com with SMTP id e3-v6so3355178wrs.5 for ; Tue, 20 Nov 2018 12:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2lD1ppSpzRzjMSPGhtTptIQdAcqiBmt6B/qj1itvtEw=; b=JgvriJbxPT511Ng9B3RgMjHYgW6+WQzR1iJ6uy2G/zvglldveibbndvud4kSmaoLJE RLgeV/RdqpEg04Igup3AhC92QOux3qMnEd/5yAruX9rMIMe7NBrnWyyGVj0sj3GlmBf6 XTwnnxX6gheZNCL4PGCXcZIfZoxuKk23ulcPiV0EXknVS1+nhm8zZQPTYcpqz6BFQdnA P5+WF2pEanz/v8UlKbQoH/Ql4rcqBLhkIiMIk3MdMmN0riEVpAwcRL//E/hI42KrFcPS K+LAMkknGGpZKa1tQunGMuD9s0ckxRlr6jb6f+htPeEulVNe2cHyPomrlyekSDmna3Th lyqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2lD1ppSpzRzjMSPGhtTptIQdAcqiBmt6B/qj1itvtEw=; b=lWHrL+X325oA46PAN06ix/EEqqsqqA2BLcAsxtVeLpqeCEFWDbOh/HaOVHOMYWMYmw UhbwUrGejRZ7zbtID3DcgL7zyJo01HhtYFNtSnth2CW5je+D/MMzqReJOmgPKdrOB64h LfIExAB+DG+3nSIOa1UoZRG5Ln3Pl1yfT2B9kwEbQP2MERT+UTaOnyGRyL8ASyGMBA8R dVjBdISCFlYWESuoCq9FdgW3wSweyYwSwQIQJT5NtBCbBbceSD4nYW9pvwPbAq+crlJ7 JKYnX/aK5UCwHlOOwPzjzkdeNCApAdwGa6MzxRqaaL+iA5cD+iWTd54mlqALpQ8yY6Ip THTA== X-Gm-Message-State: AA+aEWa0hYLuwZOfxa3Lu+1w+pdNCluJ0yc+Z6qSal7Ridgor/Azsfcy bs0LJOEpLqLBBHTs1Zw4i/TMWNrg X-Google-Smtp-Source: AFSGD/VgRwyyvxn55WDTk4CSoBg7do/HOmsW/5hxOCShTzpIfJ5UBLy1tuHz+ag03VTME5JC3J8jUA== X-Received: by 2002:adf:91c3:: with SMTP id 61mr3194363wri.324.1542745565346; Tue, 20 Nov 2018 12:26:05 -0800 (PST) Received: from alpine.nodomain (host-31-193-36-105-dynamic.telecomitaliasm.net. [31.193.36.105]) by smtp.gmail.com with ESMTPSA id 126-v6sm24333765wme.48.2018.11.20.12.26.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 12:26:04 -0800 (PST) From: Alex Raschi To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 3/4] testing/b2sum: new aport Date: Tue, 20 Nov 2018 21:25:58 +0100 Message-Id: <20181120202559.16576-3-raschi.alex@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120202559.16576-1-raschi.alex@gmail.com> References: <20181120202559.16576-1-raschi.alex@gmail.com> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://blake2.net/ BLAKE2 command line utility with multiple algorithms --- testing/b2sum/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++ testing/b2sum/makefile.patch | 27 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 testing/b2sum/APKBUILD create mode 100644 testing/b2sum/makefile.patch diff --git a/testing/b2sum/APKBUILD b/testing/b2sum/APKBUILD new file mode 100644 index 0000000000..7a6fc3db8c --- /dev/null +++ b/testing/b2sum/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Alex Raschi +pkgname=b2sum +_pkgname=BLAKE2 +pkgver=20180711 +_commit=320c325437539ae91091ce62efec1913cd8093c2 +pkgrel=0 +pkgdesc="BLAKE2 command line utility with multiple algorithms" +url="https://blake2.net/" +arch="all" +license="CC0-1.0" +depends="" +makedepends="" +subpackages="$pkgname-doc" +replaces="coreutils" +options="!check" # no test suite +source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$_commit.tar.gz + makefile.patch" +builddir="$srcdir/$_pkgname-$_commit/$pkgname" + +build() { + cd "$builddir" + + # SSE2 is not enabled for x86. + # arm* leave disabled for now, fails to build at least on armhf. + case "$CARCH" in + #aarch64|arm*) _use=neon;; + x86_64) _use=sse;; + *) _use=ref;; + esac + + USE="$_use" make +} + +package() { + cd "$builddir" + PREFIX="$pkgdir"/usr make install +} + +sha512sums="db668b6fad82c82a9431db0bad5982d9ba7ea3aeb3ede0a5335702a44fd19d23f2b89207940c060dba992009e1de7d8d892f6719cd8ffdeaed26303bdc7a7a6f b2sum-20180711.tar.gz +36a537986c5723e96c6f73bf6676863ffa0d09768884a9b9ccb05dbfff12c8e045ce4bfce57a92588f25c50f101ba9f9814902b91b7f58121399d28943cd5328 makefile.patch" diff --git a/testing/b2sum/makefile.patch b/testing/b2sum/makefile.patch new file mode 100644 index 0000000000..c2f334d7dc --- /dev/null +++ b/testing/b2sum/makefile.patch @@ -0,0 +1,27 @@ +--- b2sum/makefile.orig 2018-11-19 20:12:51.247182616 +0100 ++++ b2sum/makefile 2018-11-19 21:07:32.725287176 +0100 +@@ -1,6 +1,6 @@ + PROG=b2sum + PREFIX?=/usr/local +-MANDIR?=$(PREFIX)/man ++MANDIR?=$(PREFIX)/share/man + NO_OPENMP?=0 + NO_OPENMP_0=-fopenmp + NO_OPENMP_1= +@@ -9,8 +9,14 @@ CFLAGS?=-O3 -march=native + CFLAGS+=-std=c89 -Wall -Wextra -pedantic -Wno-long-long -I../sse + CFLAGS+=$(NO_OPENMP_$(NO_OPENMP)) + LIBS= +-#FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c +-FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c ++ ++USE?=ref ++LIB_ref=../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c ++LIB_sse=../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c ++LIB_neon=../neon/blake2b.c ../neon/blake2s.c ../neon/blake2bp.c ../neon/blake2sp.c ++ ++FILES=b2sum.c $(LIB_$(USE)) ++ + all: $(FILES) + $(CC) $(FILES) $(CFLAGS) $(LIBS) -o $(PROG) + -- 2.19.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---