From 0a2d9bf222ae7ba93e62a58040d004673ef657c5 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Mon, 26 Feb 2024 02:33:33 -0500 Subject: [PATCH] Add void linux template --- template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 template diff --git a/template b/template new file mode 100644 index 0000000..d3e862b --- /dev/null +++ b/template @@ -0,0 +1,24 @@ +pkgname=ip-lookup +version=1.2 +revision=1 +wrksrc="${pkgname}-${version}" +build_style=gnu-makefile +short_desc="An IP lookup tool" +maintainer="Rich " +license="GPL-3.0-or-later" +homepage="https://git.deadzone.lol/Wizzard/ip-lookup" +hostmakedepends="git" +makedepends="libcurl-devel cJSON-devel" +do_fetch() { + git clone --depth 1 --branch "main" https://git.deadzone.lol/Wizzard/ip-lookup "${wrksrc}" +} +do_extract() { + : +} +do_build() { + make -C ${wrksrc} SRCDIR=${wrksrc}/src OBJDIR=${wrksrc}/bin +} +do_install() { + vbin ${wrksrc}/bin/ip-lookup +} +