diff options
author | RyanSquared | 2017-05-31 01:32:37 -0500 |
---|---|---|
committer | RyanSquared | 2017-05-31 01:32:37 -0500 |
commit | 80938143c9d1f78da468d8b2f875bcac95dab580 (patch) | |
tree | c59ea8ba905959c8bb9585ee732320d576c1c849 | |
parent | 3db1136495bac442a3f39c918e301fcffb434c51 (diff) | |
download | aur-80938143c9d1f78da468d8b2f875bcac95dab580.tar.gz |
Rewrite files to allow more customized package installation
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 40 insertions, 25 deletions
@@ -1,16 +1,20 @@ pkgbase = lua-ossl-git - pkgdesc = Most comprehensive OpenSSL module in the Lua universe. - pkgver = rel.20140328.r185.gdac0e48 - pkgrel = 3 + pkgver = 20161214.r43.a91aba8 + pkgrel = 4 url = https://github.com/wahern/luaossl arch = i686 arch = x86_64 license = MIT makedepends = git - makedepends = m4 makedepends = openssl source = git+https://github.com/wahern/luaossl.git#branch=master md5sums = SKIP pkgname = lua-ossl-git + pkgdesc = Most comprehensive OpenSSL module in the Lua universe for Lua 5.3 +pkgname = lua52-ossl-git + pkgdesc = Most comprehensive OpenSSL module in the Lua universe for Lua 5.2 + +pkgname = lua51-ossl-git + pkgdesc = Most comprehensive OpenSSL module in the Lua universe for Lua 5.1 @@ -1,34 +1,45 @@ # Maintainer: Charles Heywood <charles@hashbang.sh> -pkgname=lua-ossl-git -pkgver=rel.20140328.r185.gdac0e48 -pkgrel=3 -pkgdesc="Most comprehensive OpenSSL module in the Lua universe." +pkgname=('lua-ossl-git' 'lua51-ossl-git' 'lua52-ossl-git') +pkgver=20161214.r43.a91aba8 +pkgrel=4 arch=('i686' 'x86_64') -url="https://github.com/wahern/luaossl" +url="http://25thandclement.com/~william/projects/luaossl.html" license=('MIT') -makedepends=('git' 'm4' 'openssl') +makedepends=('git' '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)" - ) + git describe --tags --long | sed "s/^[^-]*-//;s/\([^-]*-\)g/r\1/;s/-/./g" } + build() { cd "$srcdir/luaossl" - for version in ${_luaversions[@]}; do - echo "*** Attempting build for Lua version: $version" - make all${version} - done + make prefix=/usr } -package() { - cd "$srcdir/luaossl" - for version in ${_luaversions[@]}; do - make prefix="$pkgdir/usr" install${version} - done - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +package_lua-ossl-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-ossl-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-ossl-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: |