From 4378939c469889a684182061845fe24d23ca5f83 Mon Sep 17 00:00:00 2001 From: Shubham Pawar Date: Tue, 22 Jun 2021 12:24:24 +0530 Subject: [PATCH 1/3] 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 133fd31de17df80ee9185133f81232577dfe7c2f Mon Sep 17 00:00:00 2001 From: Shubham Pawar Date: Tue, 22 Jun 2021 12:41:55 +0530 Subject: [PATCH 2/3] New packages: xplr-0.14.2 --- srcpkgs/xplr/README.md | 9 +++++++++ srcpkgs/xplr/template | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 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..8bf742b506cf --- /dev/null +++ b/srcpkgs/xplr/template @@ -0,0 +1,36 @@ +# Template file for 'xplr' +pkgname=xplr +version=0.14.2 +revision=1 +archs="x86_64" +wrksrc=${pkgname} +create_wrksrc=yes +makedepends="libgcc-devel" +hostmakedepends="curl tar" +# depends="" +short_desc="A 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" +checksum=af7c7cb98a1e7b003c9ae1294fb7f7091ed48fe89ec01bfccac9aba154162c87 + +do_fetch() { + mkdir ${wrksrc} + cd ${wrksrc} + curl -OLC - ${homepage}/releases/download/v${version}/${pkgname}-linux.tar.gz + curl -OLC - ${homepage}/raw/v${version}/LICENSE + curl -OLC - ${homepage}/raw/v${version}/README.md + curl -OLC - ${homepage}/raw/v${version}/src/init.lua + curl -OLC - ${homepage}/raw/v${version}/assets/desktop/${pkgname}.desktop +} + +do_install() { + cd ${wrksrc} + tar fxz ${pkgname}-linux.tar.gz + vbin xplr + vdoc README.md + vsconf init.lua + vlicense LICENSE + vinstall ${pkgname}.desktop 644 /usr/share/applications +} From 2927c46698963275b08f3e3ddf8e604368c58095 Mon Sep 17 00:00:00 2001 From: Shubham Pawar <31388020+shubham-cpp@users.noreply.github.com> Date: Wed, 23 Jun 2021 09:03:28 +0530 Subject: [PATCH 3/3] Author wont create a release This template does not meet the requirements, so decided to delete it --- srcpkgs/xcolor/template | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 srcpkgs/xcolor/template diff --git a/srcpkgs/xcolor/template b/srcpkgs/xcolor/template deleted file mode 100644 index 8ff7421e540f..000000000000 --- a/srcpkgs/xcolor/template +++ /dev/null @@ -1,25 +0,0 @@ -# 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 -}