69 lines
1.6 KiB
Bash
69 lines
1.6 KiB
Bash
# Template file for 'lua54-vicious'
|
|
pkgname=lua54-vicious
|
|
version=2.4.1
|
|
revision=2
|
|
wrksrc=vicious-${version}
|
|
depends="lua54"
|
|
_desc="Modular widget library for window managers"
|
|
short_desc="${_desc} (5.4.x)"
|
|
maintainer="Steven R <dev@styez.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/Mic92/vicious"
|
|
distfiles="https://github.com/Mic92/vicious/archive/v${version}.tar.gz"
|
|
checksum=02a123e77c42cb5bfff66e1bf95e5b8219ec83de91ecef5e4951be021438f3a3
|
|
|
|
do_install() {
|
|
vdoc Changes.md
|
|
vdoc TODO
|
|
vdoc README.md
|
|
|
|
for luaver in 5.1 5.2 5.3 5.4; do
|
|
vmkdir usr/share/lua/${luaver}/vicious
|
|
vmkdir usr/share/lua/${luaver}/vicious/widgets
|
|
vmkdir usr/share/lua/${luaver}/vicious/contrib
|
|
|
|
vcopy "*.lua" usr/share/lua/${luaver}/vicious
|
|
vcopy "widgets/*.lua" usr/share/lua/${luaver}/vicious/widgets
|
|
vcopy "contrib/*.lua" usr/share/lua/${luaver}/vicious/contrib
|
|
done
|
|
}
|
|
|
|
lua51-vicious_package() {
|
|
depends="lua51"
|
|
short_desc="${_desc} (5.1.x)"
|
|
pkg_install() {
|
|
vmove usr/share/lua/5.1
|
|
vdoc ${wrksrc}/Changes.md
|
|
vdoc ${wrksrc}/README.md
|
|
vdoc ${wrksrc}/TODO
|
|
}
|
|
}
|
|
|
|
lua52-vicious_package() {
|
|
depends="lua52"
|
|
short_desc="${_desc} (5.2.x)"
|
|
pkg_install() {
|
|
vmove usr/share/lua/5.2
|
|
vdoc ${wrksrc}/Changes.md
|
|
vdoc ${wrksrc}/README.md
|
|
vdoc ${wrksrc}/TODO
|
|
}
|
|
}
|
|
|
|
lua53-vicious_package() {
|
|
depends="lua53"
|
|
short_desc="${_desc} (5.3.x)"
|
|
pkg_install() {
|
|
vmove usr/share/lua/5.3
|
|
vdoc ${wrksrc}/Changes.md
|
|
vdoc ${wrksrc}/README.md
|
|
vdoc ${wrksrc}/TODO
|
|
}
|
|
}
|
|
|
|
vicious_package() {
|
|
depends="lua53-vicious>=${version}_${revision}"
|
|
short_desc="${_desc} (5.3.x) (transitional dummy package)"
|
|
build_style=meta
|
|
}
|