forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniele Parisi
committed
Nov 20, 2022
1 parent
67c8b6e
commit f766f5a
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lua54-cliargs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lua54-cliargs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lua54-cliargs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Template file for 'lua54-cliargs' | ||
pkgname=lua54-cliargs | ||
version=3.0.2 | ||
revision=1 | ||
_version=3.0-2 | ||
hostmakedepends="lua54-devel lua53-devel lua52-devel lua51-devel | ||
luarocks-lua51 luarocks-lua52 luarocks-lua53 luarocks-lua54" | ||
makedepends="luarocks-lua51 luarocks-lua52 luarocks-lua53 luarocks-lua54" | ||
depends="lua54" | ||
_desc="A command-line argument parsing module for Lua. " | ||
short_desc="${_desc} (5.4.x)" | ||
maintainer="Daniele Parisi <danieleparisi@mailfence.com>" | ||
license="MIT" | ||
homepage="https://github.com/amireh/lua_cliargs" | ||
distfiles="https://github.com/amireh/lua_cliargs/archive/v${_version}.tar.gz" | ||
checksum=971d6f1440a55bdf9db581d4b2bcbf472a301d76f696a0d0ed9423957c7d176e | ||
|
||
do_install() { | ||
for lver in 5.1 5.2 5.3 5.4; do | ||
luarocks-$lver install \ | ||
--deps-mode=none \ | ||
--tree="${DESTDIR}/usr" \ | ||
lua_cliargs-${_version}.rockspec | ||
done | ||
rm -r ${DESTDIR}/usr/lib | ||
} | ||
|
||
post_install() { | ||
vlicense "${wrksrc}/LICENSE" | ||
} | ||
|
||
lua53-cliargs_package() { | ||
depends="lua53" | ||
short_desc="${_desc} (5.3.x)" | ||
pkg_install() { | ||
vmove usr/share/lua/5.3 | ||
vlicense "${wrksrc}/LICENSE" | ||
} | ||
} | ||
|
||
lua52-cliargs_package() { | ||
depends="lua52" | ||
short_desc="${_desc} (5.2.x)" | ||
pkg_install() { | ||
vmove usr/share/lua/5.2 | ||
vlicense "${wrksrc}/LICENSE" | ||
} | ||
} | ||
|
||
lua51-cliargs_package() { | ||
depends="lua51" | ||
short_desc="${_desc} (5.1.x)" | ||
pkg_install() { | ||
vmove usr/share/lua/5.1 | ||
vlicense "${wrksrc}/LICENSE" | ||
} | ||
} |