Subject: [PATCH] testing/afetch: new aport

From: KikooDX <[email-masked]>
Date: Tue, 16 Mar 2021 10:11:43 +0000

https://github.com/13-CF/afetch
Fast and simple system info written in C
---
 testing/afetch/APKBUILD | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 testing/afetch/APKBUILD

diff --git a/testing/afetch/APKBUILD b/testing/afetch/APKBUILD
new file mode 100644
index 0000000000..8ec0b03fc6
--- /dev/null
+++ b/testing/afetch/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: KikooDX <[email-masked]>
+# Maintainer: KikooDX <[email-masked]>
+pkgname=afetch
+pkgver=1_git20210212
+pkgrel=0
+pkgdesc="Fast and simple system info written in C"
+url="https://github.com/13-CF/afetch"
+arch="all"
+license="GPL-3.0-or-later"
+makedepends="gcc make"
+subpackages="$pkgname-doc"
+options="!check" # there is no test suite
+_gitrev=4c5e32ec86d9d7e41b3561e3b7e27dcca07c26d6
+source="$pkgname-$_gitrev.tar.gz::https://github.com/13-CF/afetch/archive/$_gitrev.tar.gz"
+builddir="$srcdir/$pkgname-$_gitrev"
+
+build() {
+	make
+}
+
+package() {
+	mkdir -p "$pkgdir/usr/bin"
+	mkdir -p "$pkgdir/usr/share/man/man1"
+	mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+	make PREFIX="/usr" DESTDIR="$pkgdir" install
+	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="3b58986dedef3a59cd69526d1816fed7a15a4e832061539888069d38f14751427b9d5eb9eb2587eb8aea56728d1194d82c32945d8414d56095cfe99f3fa2acc3  afetch-4c5e32ec86d9d7e41b3561e3b7e27dcca07c26d6.tar.gz"
-- 
2.30.2