summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88346b28de84c299392f74740535333be4039c9d (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: Charles Heywood <charles@hashbang.sh>
pkgname=lua-cqueues-git
pkgver=rel.20140328.r185.gdac0e48
pkgrel=1
pkgdesc="Most comprehensive OpenSSL module in the Lua universe."
arch=('i686' 'x86_64')
url="https://github.com/wahern/luaossl"
license=('MIT')
makedepends=('git' 'm4' 'openssl')
source=('git+https://github.com/wahern/luaossl.git#branch=master')
md5sums=('SKIP')
_luaversions=('5.1' '5.2' '5.3')
pkgver() {
  cd "$srcdir/luaossl"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}
build() {
  cd "$srcdir/luaossl"
  for version in ${_luaversions[@]}; do
    echo "*** Attempting build for Lua version: $version"
    make all${version}
  done
}
package() {
  cd "$srcdir/luaossl"
  for version in ${_luaversions[@]}; do
    make DESTDIR="$pkgdir/" install${version}
  done
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set et sts=0 sw=2 ts=2: