From cf9758a0d49ee0a21c7e8b390d26442d2129d0fd Mon Sep 17 00:00:00 2001 From: Maxim Karasev Date: Sun, 16 May 2021 22:47:11 +0300 Subject: [PATCH] New package: afetch-2.1.0 --- srcpkgs/afetch/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/afetch/template diff --git a/srcpkgs/afetch/template b/srcpkgs/afetch/template new file mode 100644 index 000000000000..a6f6327b982f --- /dev/null +++ b/srcpkgs/afetch/template @@ -0,0 +1,24 @@ +# Template file for 'afetch' +pkgname=afetch +version=2.1.0 +revision=1 +build_style=gnu-makefile +depends="xbps" +short_desc="Fast and simple system info written in C" +maintainer="Maxim Karasev " +license="GPL-3.0-or-later" +homepage="https://github.com/13-CF/afetch" +distfiles="http://github.com/13-CF/afetch/archive/V${version}.tar.gz" +checksum=cd6a6abdabf954395c1434f79e7d71646a015451fa3d69ba8d102d994eb8071e +CFLAGS="-std=c99" +LDFLAGS="-lpthread" + +pre_build() { + if [ -e ${FILESDIR}/config.h ]; then + cp ${FILESDIR}/config.h src/config.h + fi +} + +do_install() { + vbin afetch +}