From fd956606b00a01aa7bc6b753959f1f034c9c2be9 Mon Sep 17 00:00:00 2001
From: Leo <thinkabit.ukim@gmail.com>
Date: Sun, 12 May 2019 09:04:15 -0300
Subject: [PATCH] testing/libuninameslist: upgrade to 20190305

Closes: GH-7823
---
 testing/libuninameslist/APKBUILD | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/testing/libuninameslist/APKBUILD b/testing/libuninameslist/APKBUILD
index 2dbdce277445..ad789de58b49 100644
--- a/testing/libuninameslist/APKBUILD
+++ b/testing/libuninameslist/APKBUILD
@@ -1,38 +1,38 @@
 # Contributor: Ed Robinson <ed@reevoo.com>
 # Maintainer: Ed Robinson <ed@reevoo.com>
 pkgname=libuninameslist
-pkgver=20170807
+pkgver=20190305
 pkgrel=0
 pkgdesc="A Library of Unicode names and annotation data"
 url="https://github.com/fontforge/libuninameslist"
 arch="all"
 license="BSD-3-Clause"
 source="https://github.com/fontforge/$pkgname/releases/download/$pkgver/$pkgname-dist-$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
 makedepends="autoconf automake libtool"
-subpackages="$pkgname-dev"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
 
 prepare() {
-        default_prepare
-
-        cd "$builddir"
-        autoreconf -i
-        automake --foreign
+	default_prepare
+	autoreconf -fi
 }
 
 build() {
-        cd "$builddir"
-        ./configure --prefix=/usr
-        make
+	./configure --prefix=/usr
+	make
 }
 
 check() {
-        cd "$builddir"
-        make check
+	make check
 }
 
 package() {
-        cd "$builddir"
-        make DESTDIR="$pkgdir" install
+	make DESTDIR="$pkgdir" install
+}
+
+static() {
+	depends=""
+	pkgdesc="$pkgdesc (static library)"
+	mkdir -p "$subpkgdir"/usr/lib
+	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
 }
-sha512sums="f7ff21bff4322251e35e6957abdb1f6a17a54032c094ec71f68a42156cc10095680e0ea9cfde4d26ed7139e9d10af6d3e901eb4de2c2e430febf472f61dc039e  libuninameslist-dist-20170807.tar.gz"
+sha512sums="4dc30a4f0919722c7538ed2eda39c3e63d072ee17c809ca25e0b6546d29110607c27c6e969839439c1432b4b40fca3e888c428ed26d1e0328a5f481a2db3cc73  libuninameslist-dist-20190305.tar.gz"
-- 
GitLab