summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a05ab9416a6f7f91cbfc289e89eff0ffa9d8e60 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Charles Heywood <vandor2012@gmail.com>
pkgname=('lua-cqueues-git' 'lua51-cqueues-git' 'lua52-cqueues-git')
pkgver=20161215.r1.97cac6d
pkgrel=1
arch=('i686' 'x86_64')
url="http://25thandclement.com/~william/projects/cqueues.html"
license=('MIT')
makedepends=('git' 'openssl')
source=('git+https://github.com/wahern/cqueues.git#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/cqueues"
  git describe --tags --long | sed "s/^[^-]*-//;s/\([^-]*-\)g/r\1/;s/-/./g"
}

build() {
  cd "$srcdir/cqueues"
  make prefix=/usr
}

package_lua-cqueues-git() {
  pkgdesc="Asynchronous networking, threading, and notification framework for Lua 5.3"

  cd cqueues
  make DESTDIR="$pkgdir" prefix=/usr install5.3
  install -Dm644 LICENSE "$pkgdir"/usr/share/license/$pkgname/LICENSE
}

package_lua51-cqueues-git() {
  pkgdesc="Asynchronous networking, threading, and notification framework for Lua 5.1"

  cd cqueues
  make DESTDIR="$pkgdir" prefix=/usr install5.1
  install -Dm644 LICENSE "$pkgdir"/usr/share/license/$pkgname/LICENSE
}

package_lua52-cqueues-git() {
  pkgdesc="Asynchronous networking, threading, and notification framework for Lua 5.2"

  cd cqueues
  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: