vicious: update to 2.4.1, add all lua versions, rename

This commit is contained in:
q66 2020-07-01 18:12:03 +02:00
parent c1c7870774
commit 133134af69
6 changed files with 73 additions and 26 deletions

1
srcpkgs/lua51-vicious Symbolic link
View file

@ -0,0 +1 @@
lua54-vicious

1
srcpkgs/lua52-vicious Symbolic link
View file

@ -0,0 +1 @@
lua54-vicious

1
srcpkgs/lua53-vicious Symbolic link
View file

@ -0,0 +1 @@
lua54-vicious

View file

@ -0,0 +1,69 @@
# Template file for 'lua54-vicious'
pkgname=lua54-vicious
version=2.4.1
revision=1
wrksrc=vicious-${version}
archs=noarch
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
}

1
srcpkgs/vicious Symbolic link
View file

@ -0,0 +1 @@
lua54-vicious

View file

@ -1,26 +0,0 @@
# Template file for 'vicious'
pkgname=vicious
version=2.3.3
revision=1
archs=noarch
depends="lua"
short_desc="Modular widget library for window managers"
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=062f0e8c802a07b58d094fcc66aba7a7de242726733d31ee607a483c20c4957c
do_install() {
vdoc Changes.md
vdoc TODO
vdoc README.md
vmkdir usr/share/lua/5.3/vicious
vmkdir usr/share/lua/5.3/vicious/widgets
vmkdir usr/share/lua/5.3/vicious/contrib
vcopy "*.lua" usr/share/lua/5.3/vicious
vcopy "widgets/*.lua" usr/share/lua/5.3/vicious/widgets
vcopy "contrib/*.lua" usr/share/lua/5.3/vicious/contrib
}