# $Id: PKGBUILD 56921 2011-10-16 23:25:18Z cbrannon $ # Maintainer: Chris Brannon # Contributor: Geoffroy Carrier pkgname=luarocks pkgver=2.0.6 pkgrel=1 pkgdesc='Deployment and management system for Lua modules' arch=('i686' 'x86_64') 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 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 make } package() { cd "$srcdir/$pkgname-$pkgver" make install DESTDIR="$pkgdir" install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } md5sums=('ad3eed4d579552aa91ea49c2bdbc2bb1' 'f364b5a092a54559408df7431bc14746')