blob: a64282962d86c00744873c680df94d6f99fb9b23 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-zmq
pkgver=1.1_git20121231
pkgrel=0
pkgdesc="Lua zeromq2 binding"
url="https://github.com/Neopallium/lua-zmq"
arch="all"
license="MIT"
depends="lua-llthreads"
makedepends="zeromq-dev cmake lua-dev"
install=""
subpackages=
source="saveas-http://github.com/Neopallium/lua-zmq/tarball/v1.1/$pkgname-${pkgver%_git*}.tar.gz
git-${pkgver##*_git}.patch"
_builddir="$srcdir"/Neopallium-lua-zmq-5cf558e
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
. || return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
md5sums="d3813c48a9e2b88426fd79604862966d lua-zmq-1.1.tar.gz
e568cb33eef6230454a70dddfd5d3978 git-20121231.patch"
|