summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3ec91e5ec465672c8dd336a71a22bfab8b45d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Philipp Joram <mail at phijor dot me>
# Contributor: Petr Špaček <pspacek at isc dot org>

_lua_version=5.4
_lua_name=luaprompt

pkgname=lua-${_lua_name}
pkgver=0.8
pkgrel=1
pkgdesc="An embeddable Lua command prompt as well as a stand-alone interpreter with pretty-printing and autocompletion."
arch=(i686 x86_64)
url="https://github.com/dpapavas/luaprompt"
license=('MIT')
depends=("lua" "lua-argparse")
source=("${pkgname}-${pkgver}::https://github.com/dpapavas/luaprompt/archive/v${pkgver}.tar.gz")
# Upstream does not provide source archives with a stable checksum
md5sums=('SKIP')

build() {
  cd "$srcdir/$_lua_name-$pkgver"
  
  # prefix install-location with $(DESTDIR)
  sed -ri 's:\$\((BIN|LIB|MAN1)DIR\):\$(DESTDIR)\$(\1DIR):g' Makefile

  make PREFIX=/usr \
    VERSION=${_lua_version}
}

package() {
  cd "$srcdir/$_lua_name-$pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir/" MANDIR="/usr/share/man"\
    VERSION=${_lua_version} install

  # license
  install -Dm644 LICENSE \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: