diff options
author | Charles Heywood | 2016-03-01 20:42:43 -0600 |
---|---|---|
committer | Charles Heywood | 2016-03-01 20:43:49 -0600 |
commit | 9231f1aaadd0816cc9edfcab31919864b2f21ee0 (patch) | |
tree | 298733694b29b346a789a6ab2893728368cb6b07 /PKGBUILD | |
download | aur-9231f1aaadd0816cc9edfcab31919864b2f21ee0.tar.gz |
Initial PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..88346b28de84 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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: |