Skip to content

Instantly share code, notes, and snippets.

@daurnimator
Created August 11, 2018 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daurnimator/dba78c08445a9f779bc5b14462c8f943 to your computer and use it in GitHub Desktop.
Save daurnimator/dba78c08445a9f779bc5b14462c8f943 to your computer and use it in GitHub Desktop.
New luarocks PKGBUILD
# $Id$
# Contributor: Daurnimator <quae@daurnimator.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
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