From f0b75e78bd9789218cf9da37317c47892844a5ce Mon Sep 17 00:00:00 2001 From: Wizzard Date: Sun, 21 Jan 2024 19:10:52 -0500 Subject: [PATCH] First push --- README.md | 2 ++ template | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 README.md create mode 100644 template diff --git a/README.md b/README.md new file mode 100644 index 0000000..f7a27de --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# code-minimap void template +This serves as a simple template to build code-minimap on void linux from https://github.com/wfxr/code-minimap diff --git a/template b/template new file mode 100644 index 0000000..db2ca73 --- /dev/null +++ b/template @@ -0,0 +1,28 @@ +pkgname=code-minimap +version=0.6.4 +revision=1 +archs="x86_64" +maintainer="Wizzard " +short_desc="code-minimap" +homepage="https://github.com/wfxr/code-minimap" +license="LicenseType" +distfiles="https://github.com/wfxr/code-minimap/releases/download/v${version}/code-minimap_${version}_amd64.deb" +checksum=df772fa7668c6b52e10e9d61484c86a773ca6d75ec90ffd8b0cf8b7fdef4c47d +hostmakedepends="tar xz" + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/code-minimap_${version}_amd64.deb + tar xf data.tar.xz -C ${wrksrc} +} + +do_install() { + vmkdir /usr/bin + vmkdir /usr/share/doc/code-minimap + vmkdir /usr/share/fish/vendor_completions.d + vmkdir /usr/share/zsh/vendor-completions + + vcopy usr/bin/* /usr/bin/ + vcopy usr/share/doc/code-minimap/* /usr/share/doc/code-minimap/ + vcopy usr/share/fish/vendor_completions.d/* /usr/share/fish/vendor_completions.d/ + vcopy usr/share/zsh/vendor-completions/* /usr/share/zsh/vendor-completions/ +}