1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Maintainer: Filippov Aleksey <sarum9in@gmail.com>
13 pkgdesc="Fast messaging system built on sockets. AKA 0MQ, ZMQ."
14 arch=('i686' 'x86_64')
15 url="http://www.zeromq.org/"
18 depends=('util-linux')
19 makedepends=('git' 'asciidoc' 'xmlto')
30 _gitroot="git://github.com/zeromq/zeromq3-0.git"
35 msg "Connecting to GIT server...."
37 if [[ -d "$_gitname" ]]; then
38 cd "$_gitname" && git pull origin
39 msg "The local files are updated."
41 git clone "$_gitroot" "$_gitname"
44 msg "GIT checkout done or server timeout"
45 msg "Starting build..."
47 rm -rf "$srcdir/$_gitname-build"
48 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
49 cd "$srcdir/$_gitname-build"
55 ./configure --prefix=/usr
60 cd "$srcdir/$_gitname-build"
65 cd "$srcdir/$_gitname-build"
66 make DESTDIR="$pkgdir/" install
69 # vim:set ts=2 sw=2 et: