Subject: [PATCH] testing/meson-tools: new aport

From: Daniel Santana <[email-masked]>
Date: Sat, 29 Feb 2020 16:15:22 -0300

---
 testing/meson-tools/APKBUILD | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 testing/meson-tools/APKBUILD

diff --git a/testing/meson-tools/APKBUILD b/testing/meson-tools/APKBUILD
new file mode 100644
index 0000000000..b2a275b6cf
--- /dev/null
+++ b/testing/meson-tools/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Daniel Santana <[email-masked]>
+# Maintainer: Daniel Santana <[email-masked]>
+pkgname=meson-tools
+pkgver=0.1
+pkgrel=0
+pkgdesc="Tools for Amlogic Meson ARM platforms"
+url="https://github.com/afaerber/meson-tools"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends_host="openssl-dev"
+subpackages="$pkgname-doc"
+options="!check" # no tests provided
+source="$pkgname-$pkgver.tar.gz::https://github.com/afaerber/meson-tools/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
+
+build() {
+	cd "$builddir"
+	sed -i 's/lcrypto/lcrypto -lc/' Makefile
+	make CFLAGS="$CFLAGS -g" LDFLAGS="$LDFLAGS -lcrypto"
+}
+
+package() {
+	cd "$builddir"
+	install -d "$pkgdir/usr/bin"
+	install -m755 amlbootsig unamlbootsig amlinfo "$pkgdir/usr/bin"
+	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+sha512sums="4037dda5f2cb1e339728dd4ab59533bbd99e3cffa116dbd3472853f8454564168b3d7460c78f9738caec585a3885844174945043c682584aa5bfc8e7eee28667  meson-tools-0.1.tar.gz"
-- 
2.25.1