# 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 }