# Maintainer: Daurnimator pkgname=('lua-cqueues' 'lua51-cqueues' 'lua52-cqueues') pkgver=20190813 pkgrel=1 arch=('x86_64') url='http://25thandclement.com/~william/projects/cqueues.html' license=('MIT') makedepends=('lua' 'lua51' 'lua52') depends=('openssl') source=("$pkgname-$pkgver.tar.gz::https://github.com/wahern/cqueues/archive/rel-$pkgver.tar.gz") md5sums=('24b6f642514dabc9fb7996d2595060fa') build() { cd "cqueues-rel-$pkgver" make prefix=/usr } package_lua-cqueues() { pkgdesc='Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua 5.3' cd "cqueues-rel-$pkgver" make DESTDIR="$pkgdir" prefix=/usr install5.3 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_lua51-cqueues() { pkgdesc='Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua 5.1' cd "cqueues-rel-$pkgver" make DESTDIR="$pkgdir" prefix=/usr install5.1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_lua52-cqueues() { pkgdesc='Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua 5.2' cd "cqueues-rel-$pkgver" make DESTDIR="$pkgdir" prefix=/usr install5.2 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }