Subject: [PATCH] testing/libgrapheme: new aport

From: Pedro Lucas Porcellis <[email-masked]>
Date: Wed, 22 Dec 2021 23:01:15 -0300

https://libs.suckless.org/libgrapheme/

The libgrapheme library provides functions to properly handle Unicode
strings according to the Unicode specification.
---
 testing/libgrapheme/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/libgrapheme/APKBUILD

diff --git a/testing/libgrapheme/APKBUILD b/testing/libgrapheme/APKBUILD
new file mode 100644
index 0000000000..3b10716eb1
--- /dev/null
+++ b/testing/libgrapheme/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Pedro Lucas Porcellis <[email-masked]>
+pkgname=libgrapheme
+pkgver=1
+pkgrel=0
+pkgdesc="grapheme cluster utility library"
+url="https://libs.suckless.org/libgrapheme"
+arch="all"
+license="ISC"
+makedepends="make"
+subpackages="$pkgname-doc"
+source="https://dl.suckless.org/libgrapheme/libgrapheme-$pkgver.tar.gz"
+
+prepare() {
+	default_prepare
+	sed -i 's|/usr/local|/usr|' config.mk
+}
+
+build() {
+	make all
+}
+
+check() {
+	make test
+}
+
+package() {
+	make install PREFIX=/usr DESTDIR="$pkgdir"
+}
+sha512sums="
+c0f3300d30707266e44ee01f359204720ae1770788cec509b03be914f8581caae144fb72952d111f108ebef21fd96b5ca2cf69463ee569bce4bba8645942ee05  libgrapheme-1.tar.gz
+"
-- 
2.34.1

---

From: Leo <[email-masked]>
Date: Thu, 23 Dec 2021 02:11:26 -0000

> +subpackages="$pkgname-doc"

missing a `$pkgname-dev` subpackage

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/28766#note_200581

---

From: Pedro Lucas Porcellis <[email-masked]>
Date: Thu, 23 Dec 2021 03:38:58 -0000

> +subpackages="$pkgname-doc"

Sent a v2. Will close this MR.

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/28766#note_200591