[arch-commits] Commit in luarocks/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Thu Jun 26 08:54:41 UTC 2014


    Date: Thursday, June 26, 2014 @ 10:54:41
  Author: bpiotrowski
Revision: 113582

upgpkg: luarocks 2.1.2-2

prevent hardcoding architecture used to build packages (FS#40388)

Modified:
  luarocks/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-06-26 08:53:33 UTC (rev 113581)
+++ PKGBUILD	2014-06-26 08:54:41 UTC (rev 113582)
@@ -6,7 +6,7 @@
 pkgbase=luarocks
 pkgname=('luarocks' 'luarocks5.1')
 pkgver=2.1.2
-pkgrel=1
+pkgrel=2
 arch=('any')
 url='http://luarocks.org/'
 license=('custom')
@@ -56,6 +56,9 @@
   cd $pkgname-$pkgver
   make install DESTDIR="$pkgdir"
   install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # FS#40388
+  sed -i '/^LUAROCKS_UNAME_M/d' "$pkgdir"/usr/share/lua/5.2/luarocks/site_config.lua
 }
 
 package_luarocks5.1() {
@@ -67,6 +70,8 @@
   cd $pkgname-$pkgver
   make install DESTDIR="$pkgdir"
   install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  rm "$pkgdir"/usr/bin/luarocks{,-admin}
 
-  rm "$pkgdir"/usr/bin/luarocks{,-admin}
+  # FS#40388
+  sed -i '/^LUAROCKS_UNAME_M/d' "$pkgdir"/usr/share/lua/5.1/luarocks/site_config.lua
 }




More information about the arch-commits mailing list