26 lines
901 B
Bash
26 lines
901 B
Bash
# Template file for 'i3blocks-blocklets'
|
|
pkgname=i3blocks-blocklets
|
|
version=2.0.0
|
|
revision=1
|
|
depends="i3blocks>=1.5"
|
|
short_desc="Flexible scheduler for i3bar"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=3fd88430b0348f4621629cde99c6155441429b117e5721c9b52308f6a5d7c7a6
|
|
|
|
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##*/} 655 usr/libexec/i3blocks
|
|
done
|
|
done
|
|
}
|