# $Id: PKGBUILD 73676 2012-07-13 11:41:36Z cbrannon $ # Maintainer: Chris Brannon # Contributor: Geoffroy Carrier pkgname=luarocks pkgver=2.0.10 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') options=('!makeflags') source=(http://luarocks.org/releases/$pkgname-$pkgver.tar.gz) build() { cd "$srcdir/$pkgname-$pkgver" # 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=('85cccdbd995b489ae1a9aab33c14b7fc')