Created
August 11, 2018 02:43
-
-
Save daurnimator/dba78c08445a9f779bc5b14462c8f943 to your computer and use it in GitHub Desktop.
New luarocks PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Contributor: Daurnimator <[email protected]> | |
# Contributor: Bartłomiej Piotrowski <[email protected]> | |
# Contributor: Chris Brannon <[email protected]> | |
# Contributor: Geoffroy Carrier <[email protected]> | |
pkgname=luarocks | |
pkgver=3.0.0_notreally | |
pkgrel=1 | |
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') | |
#depends=('curl' 'lua' 'lua-zlib') | |
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=(http://luarocks.org/releases/$pkgname-$pkgver.tar.gz) | |
source=($pkgname-$pkgver::git+file:///home/daurnimator/src/luarocks) | |
md5sums=('SKIP') | |
build() { | |
cd $pkgname-$pkgver | |
make prefix=/usr sysconfdir=/etc | |
} | |
package() { | |
cd $pkgname-$pkgver | |
make prefix=/usr sysconfdir=/etc DESTDIR="$pkgdir" install | |
make prefix=/usr sysconfdir=/etc DESTDIR="$pkgdir" LUA_INTERPRETER=lua5.1 LUA_INCDIR=/usr/include/lua5.1 install-config | |
make prefix=/usr sysconfdir=/etc DESTDIR="$pkgdir" LUA_INTERPRETER=lua5.2 LUA_INCDIR=/usr/include/lua5.2 install-config | |
install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment