summaryrefslogtreecommitdiff
path: root/community/luarocks
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/luarocks
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/luarocks')
-rw-r--r--community/luarocks/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/luarocks/PKGBUILD b/community/luarocks/PKGBUILD
new file mode 100644
index 000000000..633beb5f5
--- /dev/null
+++ b/community/luarocks/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 38024 2011-01-20 16:03:49Z cbrannon $
+# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
+
+pkgname=luarocks
+pkgver=2.0.4.1
+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'
+ 'cmake: for building rocks that use the cmake build system')
+license=('custom')
+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=('2c7caccce3cdf236e6f9aca7bec9bdea')