Subject: [alpine-aports] [PATCH 1/4] community/fzf: enable on all arches

From: Alex Raschi <[email-masked]>
Date: Tue, 20 Nov 2018 21:25:56 +0100

* fixes #9575
---
 community/fzf/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/fzf/APKBUILD b/community/fzf/APKBUILD
index 4fda883e66..8c8c6d736e 100644
--- a/community/fzf/APKBUILD
+++ b/community/fzf/APKBUILD
@@ -5,7 +5,7 @@ pkgver=0.17.5
 pkgrel=0
 pkgdesc="A command-line fuzzy finder"
 url="https://github.com/junegunn/fzf"
-arch="x86 x86_64"
+arch="all"
 license="MIT"
 makedepends="go glide bash tmux"
 subpackages="
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Alex Raschi <[email-masked]>
Date: Tue, 20 Nov 2018 21:25:58 +0100

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 <[email-masked]>
+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

---

---

From: Alex Raschi <[email-masked]>
Date: Tue, 20 Nov 2018 21:25:57 +0100

* fixes #9616
---
 community/gcompat/APKBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/community/gcompat/APKBUILD b/community/gcompat/APKBUILD
index 59a2f711b0..e2a45017d2 100644
--- a/community/gcompat/APKBUILD
+++ b/community/gcompat/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: William Pitcock <[email-masked]>
 pkgname=gcompat
-pkgver=0.2.0
-pkgrel=1
+pkgver=0.3.0
+pkgrel=0
 pkgdesc="The GNU C Library compatibility layer for musl"
 url="https://code.foxkit.us/adelie/gcompat"
 arch="all !aarch64"
@@ -34,4 +34,4 @@ package() {
 	make LINKER_PATH="/lib/ld-musl-${CARCH}.so.1" LOADER_NAME="$_ld" DESTDIR="$pkgdir" install
 }
 
-sha512sums="d4dd4d4719035c8c8effa710822da2dcaa81fe982143312c088cac8a2daf83f55838c31054d4ef9921b6b2fbda88f449aa445882119183113894952e2743c0a0  gcompat-0.2.0.tar.xz"
+sha512sums="1f7dd73efd556b7e0f7f1c80751185583de24daf4ab235b488ea1ab98cea2d3a94abed341b922be0bd43c8d539a00176b892c78acf09f2adacb279c09648b3be  gcompat-0.3.0.tar.xz"
-- 
2.19.1

---

---

From: Alex Raschi <[email-masked]>
Date: Tue, 20 Nov 2018 21:25:59 +0100

https://github.com/aligrudi/neatvi
vi/ex editor with support for bidirectional UTF-8 text, syntax highlight
and infinite undo/redo
---
 testing/neatvi/APKBUILD   | 37 +++++++++++++++++++++++++++++++++++++
 testing/neatvi/conf.patch | 10 ++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 testing/neatvi/APKBUILD
 create mode 100644 testing/neatvi/conf.patch

diff --git a/testing/neatvi/APKBUILD b/testing/neatvi/APKBUILD
new file mode 100644
index 0000000000..acb1624224
--- /dev/null
+++ b/testing/neatvi/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Alex Raschi <[email-masked]>
+pkgname=neatvi
+pkgver=06
+pkgrel=0
+pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
+url="https://github.com/aligrudi/neatvi"
+arch="all"
+license="ISC" # vi.c
+subpackages="$pkgname-doc"
+options="!check" # no test suite
+source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/$pkgname/archive/$pkgver.tar.gz
+	conf.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
+}
+
+package() {
+	local pkgbin="$pkgdir"/usr/bin
+	cd "$builddir"
+	mkdir -p "$pkgbin"
+	mv vi "$pkgbin"/neatvi
+}
+
+doc() {
+	local pkgdoc="$subpkgdir"/usr/share/doc/"$pkgname"
+	cd "$builddir"
+	mkdir -p "$pkgdoc"
+	mv README "$pkgdoc"
+
+	default_doc
+}
+
+sha512sums="ff5850fc736afb33f57bcf738fc6eab346785caa5eff81fac567248eb0bede973731ca1791651d73d0157df170b6f07df3cd05ee4d8a6eb2090d51f92460d2b9  neatvi-06.tar.gz
+d5538cf2bfb98b93d3661f686540580f754cd5fca641893b58cf80312ec703aa332601f68258335a71bdeb72356148a75db22ae139e05c04c060cfcb31f2fafd  conf.patch"
diff --git a/testing/neatvi/conf.patch b/testing/neatvi/conf.patch
new file mode 100644
index 0000000000..1fdc92ddee
--- /dev/null
+++ b/testing/neatvi/conf.patch
@@ -0,0 +1,10 @@
+--- a/conf.h.orig	2017-10-01 09:07:44.000000000 +0200
++++ b/conf.h		2018-11-20 18:54:51.484850964 +0100
+@@ -12,6 +12,7 @@ static struct filetype {
+ 	{"mk", "Makefile$|makefile$|\\.mk$"},		/* makefile */
+ 	{"sh", "\\.sh$"},				/* shell script */
+ 	{"nm", "\\.nm$"},				/* neatmail */
++	{"sh", ".$"},					/* everything else */
+ };
+ 
+ /* syntax highlighting patterns */
-- 
2.19.1

---