summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 044815570e7c121a73c97ee9fed748e61bb19fa4 (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
40
41
42
43
44
45
# Maintainer: Charles Heywood <vandor2012@gmail.com>
pkgname=('lua-luaossl-git' 'lua51-luaossl-git' 'lua52-luaossl-git')
pkgver=20161214.r43.a91aba8
pkgrel=5
arch=('i686' 'x86_64')
url="http://25thandclement.com/~william/projects/luaossl.html"
license=('MIT')
makedepends=('git' 'openssl')
source=('git+https://github.com/wahern/luaossl.git#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/luaossl"
  git describe --tags --long | sed "s/^[^-]*-//;s/\([^-]*-\)g/r\1/;s/-/./g"
}

build() {
  cd "$srcdir/luaossl"
  make prefix=/usr
}

package_lua-luaossl-git() {
  pkgdesc="Most comprehensive OpenSSL module in the Lua universe for Lua 5.3"

  cd luaossl
  make DESTDIR="$pkgdir" prefix=/usr install5.3
  install -Dm644 LICENSE "$pkgdir"/usr/share/license/$pkgname/LICENSE
}

package_lua51-luaossl-git() {
  pkgdesc="Most comprehensive OpenSSL module in the Lua universe for Lua 5.1"

  cd luaossl
  make DESTDIR="$pkgdir" prefix=/usr install5.1
  install -Dm644 LICENSE "$pkgdir"/usr/share/license/$pkgname/LICENSE
}

package_lua52-luaossl-git() {
  pkgdesc="Most comprehensive OpenSSL module in the Lua universe for Lua 5.1"

  cd luaossl
  make DESTDIR="$pkgdir" prefix=/usr install5.2
  install -Dm644 LICENSE "$pkgdir"/usr/share/license/$pkgname/LICENSE
}
# vim:set et sts=0 sw=2 ts=2: