summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ddf59d7b7188f92256c41292b68ecedec36b9fc (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
pkgname=concurrentluajit
pkgver=1.1
pkgrel=1
pkgdesc='ConcurrentLua for LuaJIT'
arch=(any)
depends=(
    lua51-socket
    lua51-coxpcall
    lua51-copas
    # copas requires next deps, but they're not listed in package deps
    lua51-binaryheap
    lua51-timerwheel
)
makedepends=(
    git
    make
    cmake
    luajit
)
conflicts=(concurrentlua51)
url='https://lefcha.github.io/concurrentlua/'
license=('MIT')
source=("git+https://github.com/lefcha/concurrentlua.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cd "$srcdir/concurrentlua"
    make CC="cc -I /usr/include/luajit-2.1" LIBLUA="-lluajit-5.1" all
}

package() {
    cd "$srcdir/concurrentlua"
    make PREFIX="/usr" DESTDIR="$pkgdir" install
}