summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b41a83aa08da214299276e87bd7195ad9ed58c4 (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
# Maintainer: wolftankk <wolftankk@gmail.com>
pkgname=php-zmq
pkgver=1.1.3
pkgrel=1
pkgdesc="ZeroMQ is a software library that lets you quickly design and implement a fast message-based applications."
url="https://github.com/mkoppanen/php-zmq"
arch=('x86_64' 'i686')
[[ $CARCH == 'i686' ]] && cd _arch=32bits || _arch=64bits
license=('PHP')
depends=('php' 'zeromq')
makedepends=('gcc')
backup=('etc/php/conf.d/zmq.ini')

source=(
	"https://pecl.php.net/get/zmq-$pkgver.tgz"
)

sha256sums=('c492375818bd51b355352798fb94f04d6828c6aeda41ba813849624af74144ce')

build() {
  cd "$srcdir/zmq-$pkgver"

  #Clean current compilation
  if [ -f Makefile ]; then
	  make clean
	  phpize --clean
  fi

  phpize
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/zmq-$pkgver"

  make INSTALL_ROOT="$pkgdir" install

  echo 'extension=zmq.so' > zmq.ini 
  install -Dm644 zmq.ini "$pkgdir/etc/php/conf.d/zmq.ini"
}