Skip to content
Snippets Groups Projects
Commit df6946fb authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Migrate lua-std-_debug from AUR

parents
Branches main
Tags 2.1.10-3
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Kilian Guillaume "cafehaine" <kilian dot guillaume at gmail dot com>
pkgbase=lua-std-_debug
_rockname=${pkgbase#lua-}
pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
pkgver=1.0.1
_rockrel=1
pkgrel=6
pkgdesc='Lua-stdlib project’s debug hints library'
arch=(any)
url="https://github.com/lua-stdlib/${_rockname#std-}"
license=(MIT)
makedepends=(lua
lua51
lua52
lua53
luarocks)
# checkdepends=(specl)
_archive="${_rockname#std-}-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('efc560540f08dcf880ac48c6ab527bd741bbe3d6d66202a3c8be3ff5c9e1e907')
_package() {
cd "$_archive"
depends=(${pkgname%%-*})
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
make --deps-mode=none --no-manifest "${_rockname/-/.}-$pkgver-$_rockrel.rockspec"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
}
package_lua-std-_debug() {
_package 5.4
}
package_lua51-std-_debug() {
_package 5.1
}
package_lua52-std-_debug() {
_package 5.2
}
package_lua53-std-_debug() {
_package 5.3
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment