diff --git a/srcpkgs/i3blocks-blocklets/template b/srcpkgs/i3blocks-blocklets/template new file mode 100644 index 0000000000..ad2709ab58 --- /dev/null +++ b/srcpkgs/i3blocks-blocklets/template @@ -0,0 +1,27 @@ +# Template file for 'i3blocks-blocklets' +pkgname=i3blocks-blocklets +version=1.4.0 +revision=1 +archs=noarch +wrksrc="i3blocks-contrib-${version}" +depends="i3blocks>=1.5" +short_desc="Flexible scheduler for i3bar" +maintainer="teldra " +license="GPL-3.0-or-later, GPL-3.0-only, GPL-2.0-only" +homepage="https://github.com/vivien/i3blocks-contrib" +distfiles="https://github.com/vivien/i3blocks-contrib/archive/v${version}.tar.gz" +checksum=84148bf8f514de3b3dcaedeb5621e9640f96423d06759b7072507a15d0b6337f + +do_install() { + rm -rf .git CONTRIBUTING.md README.md ISSUE_TEMPLATE.md LICENSE.md .gitignore + + vmkdir usr/share/examples/i3blocks/ + vcopy * usr/share/examples/i3blocks/ + + vmkdir /usr/libexec/i3blocks + for folder in $(find ${wrksrc} -mindepth 1 -maxdepth 1 -type d); do + for file in $(find ${folder##*/} -executable -type f -name "${folder##*/}*"); do + vinstall ${folder##*/}/${file##*/} 644 usr/libexec/i3blocks + done + done +}