New package: i3blocks-blocklets-1.4.0

This commit is contained in:
teldra 2019-11-25 02:40:42 +01:00 committed by Helmut Pozimski
parent 5175e08b39
commit 669fcf0d2e

View file

@ -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 <teldra@rotce.de>"
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
}