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 <kikoodx@paranoici.org>
+# Maintainer: KikooDX <kikoodx@paranoici.org>
+pkgname=afetch
+pkgver=1_git20210212
the version of a git-versioned package starts with 0 instead of 1
+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"
These are not required as they are part of the build-base
> +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"
The makefile should create these beforehand or install with `install -
D`
+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