findex application runner + plugins
This commit is contained in:
parent
7ea6edfd13
commit
5b3ee80602
5 changed files with 105 additions and 0 deletions
24
srcpkgs/findex-cmd/template
Normal file
24
srcpkgs/findex-cmd/template
Normal file
|
@ -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 <lilian.jonsdottir@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
25
srcpkgs/findex-github-repo/template
Normal file
25
srcpkgs/findex-github-repo/template
Normal file
|
@ -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 <lilian.jonsdottir@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
24
srcpkgs/findex-urlopen/template
Normal file
24
srcpkgs/findex-urlopen/template
Normal file
|
@ -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 <lilian.jonsdottir@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
13
srcpkgs/findex/patches/no_opt.patch
Normal file
13
srcpkgs/findex/patches/no_opt.patch
Normal file
|
@ -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<CssProvider, gtk::glib::Error> {
|
||||||
|
.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);
|
19
srcpkgs/findex/template
Normal file
19
srcpkgs/findex/template
Normal file
|
@ -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 <lilian.jonsdottir@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue