diff --git a/srcpkgs/findex-cmd/template b/srcpkgs/findex-cmd/template new file mode 100644 index 0000000..7e04869 --- /dev/null +++ b/srcpkgs/findex-cmd/template @@ -0,0 +1,24 @@ +# Template file for 'findex-cmd' +pkgname=findex-cmd +_plugin_name=cmd +version=0.1.0 +revision=1 +_findex_version=0.8.0 +hostmakedepends="cargo" +depends="findex>=${_findex_version}" +short_desc="Command runner plugin for findex, the application finder" +maintainer="Lilian Jónsdóttir " +license="GPL-3.0-only" +homepage="https://github.com/mdgaziur/findex" +distfiles="https://github.com/mdgaziur/findex/archive/refs/tags/v${_findex_version}.tar.gz" +checksum=dd18c7c7175174e4f98aeffd7f7a50f0816d4d0cef46babd1dfb47a380a63aed + +do_build() { + cd plugins/${_plugin_name} + cargo build --release +} + +do_install() { + vmkdir usr/lib/findex/plugins + vcopy ${wrksrc}/plugins/${_plugin_name}/target/release/lib${_plugin_name}.so usr/lib/findex/plugins +} diff --git a/srcpkgs/findex-github-repo/template b/srcpkgs/findex-github-repo/template new file mode 100644 index 0000000..4487ff1 --- /dev/null +++ b/srcpkgs/findex-github-repo/template @@ -0,0 +1,25 @@ +# Template file for 'findex-github-repo' +pkgname=findex-github-repo +_plugin_name=github-repo +_lib_name=$(echo $_plugin_name | sed 's/-/_/') +version=0.1.0 +revision=1 +_findex_version=0.8.0 +hostmakedepends="cargo" +depends="findex>=${_findex_version}" +short_desc="Github repo plugin for findex, the application finder" +maintainer="Lilian Jónsdóttir " +license="GPL-3.0-only" +homepage="https://github.com/mdgaziur/findex" +distfiles="https://github.com/mdgaziur/findex/archive/refs/tags/v${_findex_version}.tar.gz" +checksum=dd18c7c7175174e4f98aeffd7f7a50f0816d4d0cef46babd1dfb47a380a63aed + +do_build() { + cd plugins/${_plugin_name} + cargo build --release +} + +do_install() { + vmkdir usr/lib/findex/plugins + vcopy ${wrksrc}/plugins/${_plugin_name}/target/release/lib${_lib_name}.so usr/lib/findex/plugins +} diff --git a/srcpkgs/findex-urlopen/template b/srcpkgs/findex-urlopen/template new file mode 100644 index 0000000..86d46dd --- /dev/null +++ b/srcpkgs/findex-urlopen/template @@ -0,0 +1,24 @@ +# Template file for 'findex-urlopen' +pkgname=findex-urlopen +_plugin_name=urlopen +version=0.1.0 +revision=1 +_findex_version=0.8.0 +hostmakedepends="cargo" +depends="findex>=${_findex_version}" +short_desc="URL open plugin for findex, the application finder" +maintainer="Lilian Jónsdóttir " +license="GPL-3.0-only" +homepage="https://github.com/mdgaziur/findex" +distfiles="https://github.com/mdgaziur/findex/archive/refs/tags/v${_findex_version}.tar.gz" +checksum=dd18c7c7175174e4f98aeffd7f7a50f0816d4d0cef46babd1dfb47a380a63aed + +do_build() { + cd plugins/${_plugin_name} + cargo build --release +} + +do_install() { + vmkdir usr/lib/findex/plugins + vcopy ${wrksrc}/plugins/${_plugin_name}/target/release/lib${_plugin_name}.so usr/lib/findex/plugins +} diff --git a/srcpkgs/findex/patches/no_opt.patch b/srcpkgs/findex/patches/no_opt.patch new file mode 100644 index 0000000..74c8ead --- /dev/null +++ b/srcpkgs/findex/patches/no_opt.patch @@ -0,0 +1,13 @@ +diff --git a/crates/findex/src/gui/css.rs b/crates/findex/src/gui/css.rs +index 2afca6e..a477545 100644 +--- a/crates/findex/src/gui/css.rs ++++ b/crates/findex/src/gui/css.rs +@@ -19,7 +19,7 @@ pub fn load_css() -> Result { + .create_config_directory("findex") + .expect("Failed to create config dir"); + let css_path_0 = config_path.join("style.css"); +- let css_path_1 = "/opt/findex/style.css"; ++ let css_path_1 = "/usr/share/findex/style.css"; + let css = CssProvider::default().unwrap(); + + let mut file = std::path::Path::new(&css_path_0); diff --git a/srcpkgs/findex/template b/srcpkgs/findex/template new file mode 100644 index 0000000..fc82dce --- /dev/null +++ b/srcpkgs/findex/template @@ -0,0 +1,19 @@ +# Template file for 'findex' +pkgname=findex +version=0.8.0 +revision=1 +build_style=cargo +makedepends="libkeybinder3-devel gtk+3-devel" +short_desc="Findex is an application finder written in Rust that uses GTK3" +maintainer="Lilian Jónsdóttir " +license="GPL-3.0-only" +homepage="https://github.com/mdgaziur/findex" +distfiles="https://github.com/mdgaziur/findex/archive/refs/tags/v${version}.tar.gz" +checksum=dd18c7c7175174e4f98aeffd7f7a50f0816d4d0cef46babd1dfb47a380a63aed + +do_install() { + vbin ${wrksrc}/target/${XBPS_RUST_TARGET}/release/findex + vbin ${wrksrc}/target/${XBPS_RUST_TARGET}/release/findex-daemon + vmkdir usr/share/findex + vcopy css/style.css usr/share/findex +}