[arch-commits] Commit in lua-luautf8/repos/community-x86_64 (PKGBUILD PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Dec 30 07:56:01 UTC 2021
Date: Thursday, December 30, 2021 @ 07:56:00
Author: alerque
Revision: 1088094
archrelease: copy trunk to community-x86_64
Added:
lua-luautf8/repos/community-x86_64/PKGBUILD
(from rev 1088093, lua-luautf8/trunk/PKGBUILD)
Deleted:
lua-luautf8/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 97 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 48 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-30 07:55:22 UTC (rev 1088093)
+++ PKGBUILD 2021-12-30 07:56:00 UTC (rev 1088094)
@@ -1,49 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-pkgbase=lua-luautf8
-_rockname=${pkgbase#lua-}
-pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
-pkgver=0.1.3
-_rockrel=1
-pkgrel=2
-pkgdesc='Add UTF-8 support to Lua, compatible with Lua string module'
-arch=(x86_64)
-url="https://github.com/starwing/$_rockname"
-license=(MIT)
-makedepends=(lua
- lua51
- lua52
- lua53
- luarocks)
-_archive="$_rockname-$pkgver"
-source=("$_archive.tar.gz::$url/archive/$pkgver.tar.gz")
-sha256sums=('208b3423a03a6c2822a2fa6b7cc8092ed7d3c0d792ec12c7cd28d6afaa442e0b')
-
-_package_helper() {
- cd "$_archive"
- provides=("${pkgname/-lua/-}=$pkgver")
- replaces=("${pkgname/-lua/-}")
- luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
- make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$_rockrel.rockspec"
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
-
-package_lua-luautf8() {
- depends=(lua)
- _package_helper 5.4
-}
-
-package_lua51-luautf8() {
- depends=(lua51)
- _package_helper 5.1
-}
-
-package_lua52-luautf8() {
- depends=(lua52)
- _package_helper 5.2
-}
-
-package_lua53-luautf8() {
- depends=(lua53)
- _package_helper 5.3
-}
Copied: lua-luautf8/repos/community-x86_64/PKGBUILD (from rev 1088093, lua-luautf8/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-30 07:56:00 UTC (rev 1088094)
@@ -0,0 +1,48 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgbase=lua-luautf8
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=0.1.3
+_rockrel=1
+pkgrel=3
+pkgdesc='Add UTF-8 support to Lua, compatible with Lua string module'
+arch=(x86_64)
+url="https://github.com/starwing/$_rockname"
+license=(MIT)
+makedepends=(lua
+ lua51
+ lua52
+ lua53
+ luarocks)
+_archive="$_rockname-$pkgver"
+source=("$_archive.tgz::$url/archive/$pkgver.tar.gz")
+sha256sums=('208b3423a03a6c2822a2fa6b7cc8092ed7d3c0d792ec12c7cd28d6afaa442e0b')
+
+_package() {
+ cd "$_archive"
+ depends=("${pkgname%-*}")
+ provides=("${pkgname/-lua/-}=$pkgver")
+ replaces=("${pkgname/-lua/-}")
+ luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+ CFLAGS="$CPPFLAGS $CFLAGS -fPIC" \
+ LIBFLAG="$LDFLAGS -shared" \
+ make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$_rockrel.rockspec"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
+
+package_lua-luautf8() {
+ _package 5.4
+}
+
+package_lua51-luautf8() {
+ _package 5.1
+}
+
+package_lua52-luautf8() {
+ _package 5.2
+}
+
+package_lua53-luautf8() {
+ _package 5.3
+}
More information about the arch-commits
mailing list