summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 967b638ff739643412df34f4f918f16e1418b036 (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
# Maintainer: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# shellcheck disable=2034
# shellcheck disable=2148

pkgname=lua-posix
pkgver=34.0.4
pkgrel=2
pkgdesc="posix bindings for Lua"
arch=('i686' 'x86_64')
url="https://github.com/luaposix/luaposix#luaposix"
license=('custom')
depends=('lua' 'lua-std-normalize')
conflicts=('lua-posix-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/release-v$pkgver.tar.gz")
md5sums=('b811b67c038e4310e05bb6149ebe6702')

build() {
  # shellcheck disable=2154
  cd "$srcdir"/luaposix-release-v$pkgver || exit 1

  build-aux/luke \
    all
}

package() {
  cd "$srcdir"/luaposix-release-v$pkgver || exit 1

  # shellcheck disable=2154
  build-aux/luke \
    PREFIX="$pkgdir"/usr \
    install

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