diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 29 insertions, 25 deletions
@@ -1,43 +1,47 @@ -# Maintainer: Florian Walch <florian+aur@fwalch.com> +# $Id: PKGBUILD 198064 2016-12-05 19:20:57Z anatolik $ +# Contributor: Florian Walch <florian+aur@fwalch.com> # Contributor: Florian Hahn <flo@fhahn.com> pkgbase=lua-messagepack pkgname=(lua51-messagepack lua52-messagepack lua-messagepack) -pkgver=0.3.3 +pkgver=0.3.7 pkgrel=1 -arch=('any') +arch=(any) url='https://fperrad.github.io/lua-MessagePack' -license=('MIT') -source=("https://github.com/fperrad/lua-MessagePack/archive/${pkgver}.tar.gz") -sha256sums=('40e86eacac87f4deaa566cdefaaa1ec6ca90ad14a9419805ea90d069736cfda6') +license=(MIT) +checkdepends=(lua lua-testmore) +source=(lua-messagepack-$pkgver.tar.gz::https://github.com/fperrad/lua-MessagePack/archive/$pkgver.tar.gz) +sha256sums=('e20606256c1a228158ea8e47bea8a964a1ea1b77f3120d6eba34ee4bf0eec623') package_lua51-messagepack() { - pkgdesc='Implementation of MessagePack spec v5 for Lua 5.1.' - depends=('lua51') + pkgdesc='Implementation of MessagePack spec v5 for Lua 5.1' + depends=(lua51) - cd "lua-MessagePack-${pkgver}" - make LUAVER=5.1 PREFIX="/usr" DESTDIR="${pkgdir}" install - install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd lua-MessagePack-${pkgver} + make LUAVER=5.1 PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_lua52-messagepack() { - pkgdesc='Implementation of MessagePack spec v5 for Lua 5.2.' - depends=('lua52') + pkgdesc='Implementation of MessagePack spec v5 for Lua 5.2' + depends=(lua52) - cd "lua-MessagePack-${pkgver}" - make LUAVER=5.2 PREFIX="/usr" DESTDIR="${pkgdir}" install - install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd lua-MessagePack-$pkgver + make LUAVER=5.2 PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_lua-messagepack() { - pkgdesc='Implementation of MessagePack spec v5 for Lua 5.3.' - depends=('lua') - provides=("lua53-messagepack=${pkgver}") - conflicts=('lua53-messagepack') - - cd "lua-MessagePack-${pkgver}" - make LUAVER=5.3 PREFIX="/usr" DESTDIR="${pkgdir}" install - install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + pkgdesc='Implementation of MessagePack spec v5 for Lua 5.3' + depends=(lua) + + cd lua-MessagePack-$pkgver + make LUAVER=5.3 PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +check() { + cd lua-MessagePack-$pkgver + make check } -# vim:set sw=2 sts=2 et: |