[arch-commits] Commit in lua-linenoise/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Fri Apr 22 14:40:18 UTC 2022
Date: Friday, April 22, 2022 @ 14:40:16
Author: alerque
Revision: 1187341
upgpkg: lua-linenoise 0.9-8; drop CFLAGS workarounds obsoleted by luarocks 3.9.0; split build() and package() steps
Modified:
lua-linenoise/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-22 14:36:51 UTC (rev 1187340)
+++ PKGBUILD 2022-04-22 14:40:16 UTC (rev 1187341)
@@ -5,7 +5,7 @@
_rockname=${pkgbase#lua-}
pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
pkgver=0.9
-pkgrel=7
+pkgrel=8
_rockrel=1
pkgdesc='A binding for the linenoise command line library'
arch=(x86_64)
@@ -16,17 +16,27 @@
lua52
lua53
luarocks)
+options=(debug)
_archive="$pkgbase-$pkgver"
+_rock="$_rockname-$pkgver-$_rockrel.linux-$CARCH.rock"
+_rockspec="$_rockname-$pkgver-$_rockrel.rockspec"
source=("$_archive.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c')
+build() {
+ cd "$_archive"
+ for LUAVER in 5.{1,2,3,4}; do
+ luarocks --lua-version "$LUAVER" \
+ make --pack-binary-rock --deps-mode none -- "$_rockspec"
+ install -Dm0644 -t "lua-$LUAVER/" "$_rock"
+ done
+}
+
_package() {
cd "$_archive"
depends=("${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"
+ luarocks --lua-version "$1" --tree "$pkgdir/usr/" \
+ install --deps-mode none --no-manifest -- "lua-$1/$_rock"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
}
More information about the arch-commits
mailing list