From 353d9178c587e43717f8068993cd351517566052 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 22 Nov 2022 21:58:00 +0000 Subject: [PATCH 1/3] New package: xplr-0.20.0 --- srcpkgs/xplr/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/xplr/template diff --git a/srcpkgs/xplr/template b/srcpkgs/xplr/template new file mode 100644 index 000000000000..4f56ae05852f --- /dev/null +++ b/srcpkgs/xplr/template @@ -0,0 +1,20 @@ +# Template file for 'xplr' +pkgname=xplr +version=0.20.0 +revision=1 +build_style=cargo +short_desc="Hackable, minimal, fast TUI file explorer" +maintainer="Muhammad Nauman Raza " +license="MIT" +homepage="https://github.com/sayanarjit/xplr" +distfiles="https://github.com/sayanarijit/xplr/archive/refs/tags/v${version}.tar.gz" +checksum=c4d63d9e1e313eeeb2e6d8d17e30b18ee4b8be01c419f08a89959fe5a4a09ac0 + +do_install() { + vlicense LICENSE + vdoc README.md + vmkdir usr/share/doc/xplr/ + vcopy docs/en/src usr/share/doc/xplr/ + local _bin_path="${wrksrc}/target/${RUST_TARGET}/release" + vbin ${_bin_path}/xplr +} From 59eb32876abea4c15c3f679ef21783519f9adab7 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 23 Nov 2022 10:10:59 +0000 Subject: [PATCH 2/3] xplr: use post_install() instead of do_install() This removes the need to specify the binary to install. Additionally, the 'usr/share/doc/xplr' is automatically created by xbps, so it does need to be manually created. --- srcpkgs/xplr/template | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/srcpkgs/xplr/template b/srcpkgs/xplr/template index 4f56ae05852f..0f57bd0da232 100644 --- a/srcpkgs/xplr/template +++ b/srcpkgs/xplr/template @@ -10,11 +10,8 @@ homepage="https://github.com/sayanarjit/xplr" distfiles="https://github.com/sayanarijit/xplr/archive/refs/tags/v${version}.tar.gz" checksum=c4d63d9e1e313eeeb2e6d8d17e30b18ee4b8be01c419f08a89959fe5a4a09ac0 -do_install() { +post_install() { vlicense LICENSE vdoc README.md - vmkdir usr/share/doc/xplr/ vcopy docs/en/src usr/share/doc/xplr/ - local _bin_path="${wrksrc}/target/${RUST_TARGET}/release" - vbin ${_bin_path}/xplr } From b073b7a4901daa5e9f56f3e8c8b5447d26674ad7 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 23 Nov 2022 10:11:44 +0000 Subject: [PATCH 3/3] xplr: typo in homepage --- srcpkgs/xplr/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/xplr/template b/srcpkgs/xplr/template index 0f57bd0da232..7550706957d8 100644 --- a/srcpkgs/xplr/template +++ b/srcpkgs/xplr/template @@ -6,7 +6,7 @@ build_style=cargo short_desc="Hackable, minimal, fast TUI file explorer" maintainer="Muhammad Nauman Raza " license="MIT" -homepage="https://github.com/sayanarjit/xplr" +homepage="https://github.com/sayanarijit/xplr" distfiles="https://github.com/sayanarijit/xplr/archive/refs/tags/v${version}.tar.gz" checksum=c4d63d9e1e313eeeb2e6d8d17e30b18ee4b8be01c419f08a89959fe5a4a09ac0