summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20a8c1ff1b67824e7ed424417401eda8e56ecbb3 (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
46
47
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: bobberb

pkgname=czmqpp-git
pkgver=20160505
pkgrel=1
pkgdesc="C++ wrapper for czmq"
arch=('i686' 'x86_64')
depends=('czmq' 'zeromq')
makedepends=('autoconf' 'gcc' 'git' 'make' 'pkg-config')
url="https://github.com/zeromq/czmqpp"
license=('LGPL3')
source=(git+https://github.com/zeromq/czmqpp)
sha256sums=('SKIP')
provides=('czmqpp')
conflicts=('czmqpp')

pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

build() {
  cd ${pkgname%-git}

  msg2 'Building...'
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib/czmqpp \
    --sysconfdir=/etc \
    --sharedstatedir=/usr/share/czmqpp \
    --localstatedir=/var/lib/czmqpp \
    --with-gnu-ld
  make
}

package() {
  cd ${pkgname%-git}

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install

  msg2 'Cleaning up pkgdir...'
  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}