From c4f201fd7208805c7ee00e0ee833d3cc505898ac Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Oct 2011 23:14:42 +0000 Subject: Mon Oct 17 23:14:42 UTC 2011 --- community/luarocks/PKGBUILD | 18 ++++++++++++++---- community/luarocks/packbinary.patch | 12 ++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 community/luarocks/packbinary.patch (limited to 'community/luarocks') diff --git a/community/luarocks/PKGBUILD b/community/luarocks/PKGBUILD index 633beb5f5..2b29ab5c8 100644 --- a/community/luarocks/PKGBUILD +++ b/community/luarocks/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 38024 2011-01-20 16:03:49Z cbrannon $ +# $Id: PKGBUILD 56921 2011-10-16 23:25:18Z cbrannon $ # Maintainer: Chris Brannon # Contributor: Geoffroy Carrier pkgname=luarocks -pkgver=2.0.4.1 +pkgver=2.0.6 pkgrel=1 pkgdesc='Deployment and management system for Lua modules' arch=('i686' 'x86_64') @@ -11,12 +11,21 @@ url="http://luarocks.org/" depends=('lua' 'unzip' 'zip' 'curl') optdepends=('cvs: for fetching sources from CVS repositories' 'git: for fetching sources from git repositories' + 'mercurial: for fetching sources from mercurial repositories' + 'luasec: HTTPS support' 'cmake: for building rocks that use the cmake build system') license=('custom') -source=(http://luarocks.org/releases/$pkgname-$pkgver.tar.gz) +source=(http://luarocks.org/releases/$pkgname-$pkgver.tar.gz + packbinary.patch) build() { cd "$srcdir/$pkgname-$pkgver" + + ## The --pack-binary option to the "build" command is broken in the release, + # but it was fixed in upstream's git repo. The following patch goes + # away with the next release: + patch -p1 < "$srcdir/packbinary.patch" + # I added --with-downloader=curl, because luarocks already uses curl # for uploading. May as well use curl for downloading. ./configure --prefix=/usr --sysconfdir=/etc/luarocks --with-downloader=curl @@ -29,4 +38,5 @@ package() { install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -md5sums=('2c7caccce3cdf236e6f9aca7bec9bdea') +md5sums=('ad3eed4d579552aa91ea49c2bdbc2bb1' + 'f364b5a092a54559408df7431bc14746') diff --git a/community/luarocks/packbinary.patch b/community/luarocks/packbinary.patch new file mode 100644 index 000000000..59a46f6e1 --- /dev/null +++ b/community/luarocks/packbinary.patch @@ -0,0 +1,12 @@ +diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua +index af098f3..3c7f440 100644 +--- a/src/luarocks/build.lua ++++ b/src/luarocks/build.lua +@@ -3,6 +3,7 @@ + -- Builds a rock, compiling its C parts if any. + module("luarocks.build", package.seeall) + ++local pack = require("luarocks.pack") + local path = require("luarocks.path") + local util = require("luarocks.util") + local rep = require("luarocks.rep") -- cgit v1.2.3-54-g00ecf