[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Dec 30 21:40:56 UTC 2021
Date: Thursday, December 30, 2021 @ 21:40:56
Author: alerque
Revision: 1088944
Migrate lua-yaml from AUR
Added:
lua-yaml/
lua-yaml/repos/
lua-yaml/trunk/
lua-yaml/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Added: lua-yaml/trunk/PKGBUILD
===================================================================
--- lua-yaml/trunk/PKGBUILD (rev 0)
+++ lua-yaml/trunk/PKGBUILD 2021-12-30 21:40:56 UTC (rev 1088944)
@@ -0,0 +1,47 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgbase=lua-yaml
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=1.1.2
+_rockrel=1
+pkgrel=5
+pkgdesc='LibYAML binding for Lua'
+arch=(x86_64 i686)
+url="https://lubyk.github.io/lubyk/$_rockname.html"
+license=(MIT)
+_luadeps=(lub)
+makedepends=(lua
+ lua51
+ lua52
+ lua53
+ luarocks)
+_archive="$_rockname-REL-$pkgver"
+source=("https://github.com/lubyk/$_rockname/archive/REL-$pkgver/$_archive.tar.gz")
+sha256sums=('b4391d182677ab644403bf1ac028c7421c2605db124f9792193013c582a273ec')
+
+_package() {
+ cd "$_archive"
+ depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+ luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+ CFLAGS="$CPPFLAGS $CFLAGS -fPIC" \
+ LIBFLAG="$LDFLAGS -shared" \
+ make --deps-mode=none --no-manifest "$_rockname-$pkgver-$_rockrel.rockspec"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
+
+package_lua-yaml() {
+ _package 5.4
+}
+
+package_lua53-yaml() {
+ _package 5.3
+}
+
+package_lua52-yaml() {
+ _package 5.2
+}
+
+package_lua51-yaml() {
+ _package 5.1
+}
More information about the arch-commits
mailing list