Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
9f9694e5
Commit
9f9694e5
authored
3 years ago
by
Francesco Colista
Browse files
Options
Downloads
Patches
Plain Diff
community/lua-luatz: new aport
parent
0d00fc9b
No related branches found
No related tags found
1 merge request
!20278
3.13 vala
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/lua-luatz/APKBUILD
+54
-0
54 additions, 0 deletions
community/lua-luatz/APKBUILD
with
54 additions
and
0 deletions
community/lua-luatz/APKBUILD
0 → 100644
+
54
−
0
View file @
9f9694e5
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname
=
lua-luatz
_pkgname
=
${
pkgname
/lua-/
}
pkgver
=
0.4.1
_ver
=
${
pkgver
//./-
}
_pkgver
=
${
_ver
/-/.
}
pkgrel
=
0
pkgdesc
=
"Time, Date and Timezone library for lua"
url
=
"https://daurnimator.github.io/luatz/"
arch
=
"noarch"
license
=
"MIT"
checkdepends
=
"lua-busted luajit"
depends
=
"tzdata"
# /etc/locatime is not installed by default
options
=
"!check"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/daurnimator/luatz/archive/v
$_pkgver
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-
$_pkgver
_luaversions
=
"5.1 5.2 5.3"
for
_v
in
$_luaversions
;
do
subpackages
=
"
$subpackages
lua
$_v
-
${
pkgname
#lua-
}
:_subpackage:noarch"
checkdepends
=
"
$checkdepends
lua
$_v
"
done
package
()
{
mkdir
-p
"
$pkgdir
"
}
check
()
{
local
lver
;
for
lver
in
$_luaversions
jit
;
do
msg
"Testing on lua
$lver
"
lua
$lver
/usr/bin/busted
done
}
_subpackage
()
{
local
lver
=
"
${
subpkgname
:3:3
}
"
pkgdesc
=
"
$pkgdesc
(for Lua
$lver
)"
depends
=
"lua
$lver
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
lua
$lver
"
local
lmod_dir
=
"
$subpkgdir
/usr/share/lua/
$lver
"
local
rockdir
=
"
$subpkgdir
/usr/lib/luarocks/rocks-
$lver
/
$_pkgname
/
$pkgver
-1"
cd
$builddir
mkdir
-p
"
$lmod_dir
"
cp
-r
$_pkgname
"
$lmod_dir
"
/
mkdir
-p
"
$rockdir
"
echo
'rock_manifest = {}'
>
"
$rockdir
"
/rock_manifest
}
sha512sums
=
"87e53afa85aa66cc0359d9581eb3dd9974f6ceb11cb57b0bfc6745d9bb1b6dbc90520fb6834e5de85b7fc46ff44c5d35dfd7136547a1973585f8cbf8707b45d1 lua-luatz-0.4.1.tar.gz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment