[arch-commits] Commit in luarocks/repos/community-testing-any (PKGBUILD PKGBUILD)

Daurnimator daurnimator at archlinux.org
Tue Feb 12 13:37:56 UTC 2019


    Date: Tuesday, February 12, 2019 @ 13:37:55
  Author: daurnimator
Revision: 431953

archrelease: copy trunk to community-testing-any

Added:
  luarocks/repos/community-testing-any/PKGBUILD
    (from rev 431952, luarocks/trunk/PKGBUILD)
Deleted:
  luarocks/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |  137 +++++++++++++++++--------------------------------------------
 1 file changed, 40 insertions(+), 97 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-12 13:36:41 UTC (rev 431952)
+++ PKGBUILD	2019-02-12 13:37:55 UTC (rev 431953)
@@ -1,97 +0,0 @@
-# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Chris Brannon <cmbrannon79 at gmail.com>
-# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
-
-pkgbase=luarocks
-pkgname=('luarocks' 'luarocks5.1' 'luarocks5.2')
-pkgver=3.0.4
-pkgrel=1
-arch=('any')
-url='http://luarocks.org/'
-license=('custom')
-depends=('unzip' 'zip' 'curl')
-makedepends=('lua' 'lua51' 'lua52')
-optdepends=('cvs: for fetching sources from CVS repositories'
-            'git: for fetching sources from git repositories'
-            'mercurial: for fetching sources from mercurial repositories'
-            'cmake: for building rocks that use the cmake build system')
-options=('!makeflags')
-source=(https://luarocks.org/releases/$pkgname-$pkgver.tar.gz{,.asc})
-md5sums=('b67be533e0e027a26e3fd2b566ac938f'
-         'SKIP')
-validpgpkeys=(8460980B2B79786DE0C7FCC83FD8F43C2BB3C478)
-
-prepare() {
-  cp -r $pkgbase-$pkgver ${pkgbase}5.1-$pkgver
-  cp -r $pkgbase-$pkgver ${pkgbase}5.2-$pkgver
-}
-
-build() {
-
-  cd $pkgbase-$pkgver
-  LUA_VERSION= ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --lua-version=5.3 \
-    --with-lua-include=/usr/include \
-    --versioned-rocks-dir
-  make
-
-  cd ../${pkgbase}5.1-$pkgver
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --lua-version=5.1 \
-    --lua-suffix=5.1 \
-    --with-lua-include=/usr/include/lua5.1 \
-    --versioned-rocks-dir
-  make
-  sed -i 's/env lua/env lua5.1/' src/bin/luarocks{,-admin}
-
-  cd ../${pkgbase}5.2-$pkgver
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --lua-version=5.2 \
-    --lua-suffix=5.2 \
-    --with-lua-include=/usr/include/lua5.2 \
-    --versioned-rocks-dir
-  make
-  sed -i 's/env lua/env lua5.2/' src/bin/luarocks{,-admin}
-}
-
-package_luarocks() {
-  pkgdesc='Deployment and management system for Lua 5.3 modules'
-  backup=('etc/luarocks/config-5.3.lua')
-  depends+=('lua')
-  optdepends+=('lua-sec: HTTPS support')
-
-  cd $pkgname-$pkgver
-  make install DESTDIR="$pkgdir"
-  install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  cp "$pkgdir"/usr/bin/luarocks{,-5.3}
-  cp "$pkgdir"/usr/bin/luarocks-admin{,-5.3}
-}
-
-package_luarocks5.1() {
-  pkgdesc='Deployment and management system for Lua 5.1 modules'
-  backup=('etc/luarocks/config-5.1.lua')
-  depends+=('lua51')
-  optdepends+=('lua51-sec: HTTPS support')
-
-  cd $pkgname-$pkgver
-  make install DESTDIR="$pkgdir"
-  install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  mv "$pkgdir"/usr/bin/luarocks{,-5.1}
-  mv "$pkgdir"/usr/bin/luarocks-admin{,-5.1}
-}
-
-package_luarocks5.2() {
-  pkgdesc='Deployment and management system for Lua 5.2 modules'
-  backup=('etc/luarocks/config-5.2.lua')
-  depends+=('lua52')
-  optdepends+=('lua52-sec: HTTPS support')
-
-  cd $pkgname-$pkgver
-  make install DESTDIR="$pkgdir"
-  install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  mv "$pkgdir"/usr/bin/luarocks{,-5.2}
-  mv "$pkgdir"/usr/bin/luarocks-admin{,-5.2}
-}

Copied: luarocks/repos/community-testing-any/PKGBUILD (from rev 431952, luarocks/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-12 13:37:55 UTC (rev 431953)
@@ -0,0 +1,40 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Chris Brannon <cmbrannon79 at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
+
+pkgname=luarocks
+pkgver=3.0.4
+pkgrel=2
+pkgdesc='Deployment and management system for Lua modules'
+backup=(etc/luarocks/config-5.{1,2,3}.lua)
+arch=('any')
+url='https://luarocks.org/'
+license=('custom')
+replaces=('luarocks5.1' 'luarocks5.2')
+depends=('unzip' 'zip' 'curl' 'lua')
+optdepends=('cvs: for fetching sources from CVS repositories'
+            'git: for fetching sources from git repositories'
+            'mercurial: for fetching sources from mercurial repositories'
+            'cmake: for building rocks that use the cmake build system'
+            'lua-sec: HTTPS support')
+source=("https://luarocks.org/releases/$pkgname-$pkgver.tar.gz"{,.asc})
+md5sums=('b67be533e0e027a26e3fd2b566ac938f'
+         'SKIP')
+validpgpkeys=('8460980B2B79786DE0C7FCC83FD8F43C2BB3C478')
+
+build() {
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr
+  make ./build/luarocks ./build/luarocks-admin ./build/config-5.3.lua
+  make LUA_VERSION=5.1 LUA_INTERPRETER=lua5.1 LUA_INCDIR=/usr/include/lua5.1 ./build/config-5.1.lua
+  make LUA_VERSION=5.2 LUA_INTERPRETER=lua5.2 LUA_INCDIR=/usr/include/lua5.2 ./build/config-5.2.lua
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" LUA_VERSION=5.1 install-config
+  make DESTDIR="$pkgdir" LUA_VERSION=5.2 install-config
+  install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}



More information about the arch-commits mailing list