From 62609093efe0ec4198e8b621a488eaeb14ae8a28 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 22 Nov 2022 21:58:00 +0000 Subject: [PATCH] New package: xplr-0.20.0 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. xplr: typo in homepage xplr: documentation directory itself being copied Instead, everything inside of the documentation directory should be copied to '/usr/share/doc/xplr'. Mistake was made as the manual stated that the 'vcopy' function copies everything inside of the pattern, and not the pattern itself by default. Instead, the 'vcopy' function is able to do this, but requires a '/*' following the directory which needs it's contents being copied. xplr: patch for cross-compiling compatibility --- .../xplr/patches/remove-vendored-lua.patch | 53 +++++++++++++++++++ srcpkgs/xplr/template | 18 +++++++ 2 files changed, 71 insertions(+) create mode 100644 srcpkgs/xplr/patches/remove-vendored-lua.patch create mode 100644 srcpkgs/xplr/template diff --git a/srcpkgs/xplr/patches/remove-vendored-lua.patch b/srcpkgs/xplr/patches/remove-vendored-lua.patch new file mode 100644 index 000000000000..a8afb8f3c03e --- /dev/null +++ b/srcpkgs/xplr/patches/remove-vendored-lua.patch @@ -0,0 +1,53 @@ +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -557,27 +557,7 @@ name = "log" + version = "0.4.17" + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +-dependencies = [ +- "cfg-if", +-] +- +-[[package]] +-name = "lua-src" +-version = "544.0.1" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "708ba3c844d5e9d38def4a09dd871c17c370f519b3c4b7261fbabe4a613a814c" +-dependencies = [ +- "cc", +-] +- +-[[package]] +-name = "luajit-src" +-version = "210.4.3+resty8384278" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "19ee5d5afddf1ec76ffa55ca7c3001f2f8a703834beba53c56a38ea6641cef44" +-dependencies = [ +- "cc", +-] ++dependencies = [] + + [[package]] + name = "memchr" +@@ -637,8 +617,6 @@ dependencies = [ + "bstr", + "cc", + "erased-serde", +- "lua-src", +- "luajit-src", + "num-traits", + "once_cell", + "pkg-config", +diff --git a/Cargo.toml b/Cargo.toml +index e7e21c4..048306c 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -64,7 +64,7 @@ features = ['serde'] + + [dependencies.mlua] + version = "0.8.4" +-features = ['luajit', 'vendored', 'serialize', 'send'] ++features = ['luajit', 'serialize', 'send'] + + [dependencies.tui-input] + version = "0.6.0" diff --git a/srcpkgs/xplr/template b/srcpkgs/xplr/template new file mode 100644 index 000000000000..ed0fea14c387 --- /dev/null +++ b/srcpkgs/xplr/template @@ -0,0 +1,18 @@ +# Template file for 'xplr' +pkgname=xplr +version=0.20.0 +revision=1 +build_style=cargo +makedepends="pkg-config LuaJIT-devel" +short_desc="Hackable, minimal, fast TUI file explorer" +maintainer="Muhammad Nauman Raza " +license="MIT" +homepage="https://github.com/sayanarijit/xplr" +distfiles="https://github.com/sayanarijit/xplr/archive/refs/tags/v${version}.tar.gz" +checksum=c4d63d9e1e313eeeb2e6d8d17e30b18ee4b8be01c419f08a89959fe5a4a09ac0 + +post_install() { + vlicense LICENSE + vdoc README.md + vcopy docs/en/src/* usr/share/doc/xplr/ +}