[arch-commits] Commit in lua/trunk (PKGBUILD)
Anatol Pomozov
anatolik at archlinux.org
Tue Sep 8 17:25:30 UTC 2015
Date: Tuesday, September 8, 2015 @ 19:25:30
Author: anatolik
Revision: 245602
FS#46220: Add versioned symlinks to current Lua version
Modified:
lua/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-08 16:12:27 UTC (rev 245601)
+++ PKGBUILD 2015-09-08 17:25:30 UTC (rev 245602)
@@ -5,7 +5,8 @@
pkgname=lua
pkgver=5.3.1
-pkgrel=1
+_majorver=${pkgver%.*}
+pkgrel=2
pkgdesc='Powerful lightweight programming language designed for extending applications'
arch=('i686' 'x86_64')
url='http://www.lua.org/'
@@ -25,7 +26,7 @@
cd lua-$pkgver
patch -p1 -i ../liblua.so.patch
- sed "s/%VER%/${pkgver%.*}/g;s/%REL%/$pkgver/g" ../lua.pc > lua.pc
+ sed "s/%VER%/$_majorver/g;s/%REL%/$pkgver/g" ../lua.pc > lua.pc
}
build() {
@@ -39,11 +40,14 @@
cd lua-$pkgver
make \
- TO_LIB="liblua.a liblua.so liblua.so.5.3 liblua.so.$pkgver" \
+ TO_LIB="liblua.a liblua.so liblua.so.$_majorver liblua.so.$pkgver" \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$pkgdir"/usr \
INSTALL_MAN="$pkgdir"/usr/share/man/man1 \
install
+ ln -sf /usr/bin/lua "$pkgdir"/usr/bin/lua$_majorver
+ ln -sf /usr/bin/luac "$pkgdir"/usr/bin/luac$_majorver
+
install -Dm644 lua.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
install -d "$pkgdir"/usr/share/doc/$pkgname
More information about the arch-commits
mailing list