From 4378939c469889a684182061845fe24d23ca5f83 Mon Sep 17 00:00:00 2001 From: Shubham Pawar Date: Tue, 22 Jun 2021 12:24:24 +0530 Subject: [PATCH 1/2] Minimalistic X11 color picker written is Rust --- srcpkgs/xcolor/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/xcolor/template diff --git a/srcpkgs/xcolor/template b/srcpkgs/xcolor/template new file mode 100644 index 000000000000..8ff7421e540f --- /dev/null +++ b/srcpkgs/xcolor/template @@ -0,0 +1,25 @@ +# Template file for 'xcolor' +pkgname=xcolor +version=0.5.0 +revision=1 +archs="x86_64" +wrksrc=${pkgname} +build_style=cargo +makedepends="libxcb-devel libX11-devel libXcursor-devel libXrender-devel" +hostmakedepends="rust python3 git pkg-config" +short_desc="Lightweight color picker for X11 written in Rust" +maintainer="Shubham Pawar " +license="MIT" +homepage="https://github.com/Soft/xcolor" +# distfiles="https://github.com/Soft/xcolor/archive/${version}.tar.gz" +checksum=35e8eaadeb53d77f90869af4e97bd2253a73f438624c7ce6ee7156d12bb83fce + +do_fetch() { + git clone https://github.com/Soft/xcolor.git ${wrksrc} +} + +post_install() { + vman man/xcolor.1 + vinstall extra/xcolor.desktop 644 usr/share/applications + vlicense LICENSE +} From ec0ead0588946dcb3bdaa62b090dac2e364b6bed Mon Sep 17 00:00:00 2001 From: Shubham Pawar Date: Tue, 22 Jun 2021 12:41:55 +0530 Subject: [PATCH 2/2] New packages: xplr-0.14.2 Removed do_fetch() and now using xbps-src distfiles. Add arch x86_64* i686* aarch64* armv[67]l* armv[67]hf* --- srcpkgs/xplr/README.md | 9 +++++++++ srcpkgs/xplr/template | 43 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/xplr/README.md create mode 100644 srcpkgs/xplr/template diff --git a/srcpkgs/xplr/README.md b/srcpkgs/xplr/README.md new file mode 100644 index 000000000000..b31daee5e4cb --- /dev/null +++ b/srcpkgs/xplr/README.md @@ -0,0 +1,9 @@ +# Usage +```bash +# Create a xplr config dir if doesn't exists already +mkdir -p ~/.config/xplr +# Copy an example config file +cp /usr/share/examples/xplr/init.lua ~/.config/xplr +# Now run the program itself +xplr +``` diff --git a/srcpkgs/xplr/template b/srcpkgs/xplr/template new file mode 100644 index 000000000000..6aa9c1d338cc --- /dev/null +++ b/srcpkgs/xplr/template @@ -0,0 +1,43 @@ +# Template file for 'xplr' +pkgname=xplr +version=0.14.2 +revision=1 +archs="x86_64* i686* aarch64* armv[67]l* armv[67]hf*" +hostmakedepends="tar" +makedepends="libgcc-devel" +short_desc="Hackable, minimal, fast TUI file explorer written in Rust" +maintainer="Shubham Pawar " +license="MIT" +homepage="https://github.com/sayanarijit/xplr" +distfiles="${homepage}/releases/download/v${version}/${pkgname}-linux.tar.gz + ${homepage}/raw/v${version}/LICENSE + ${homepage}/raw/v${version}/README.md + ${homepage}/raw/v${version}/src/init.lua + ${homepage}/raw/v${version}/assets/desktop/${pkgname}.desktop" + +checksum="39686ea1cdd1803ed334b19700c59e2e9b2294a28a585f2420b1f8fdfddf33b4 + 393e9f5a12c614e476ff7067b3fd330dc63304e92d6c3762fa9120cedc7e6b9c + bad22089fb474285b73037a069dcbc54432242f97264544c8b368f2763a9772b + 1366bbea16fcc66c99f0ab2b11f65ec1a0d8e97b38294f5b3c6c64b1e6667dd4 + f71844576ef72820b9baddd34c49a04e1f0655dcc88c693eb509589907bdf86f" + +tags="file-manager rust" + +case "$XBPS_TARGET_MACHINE" in + aarch64*|arm*) + nostrip=yes + ;; +esac + +do_extract() { + tar fxz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-linux.tar.gz +} + +do_install() { + vbin xplr + cd ${XBPS_SRCDISTDIR}/${pkgname}-${version} + vdoc README.md + vsconf init.lua + vlicense LICENSE + vinstall ${pkgname}.desktop 644 /usr/share/applications +}