summaryrefslogtreecommitdiff
path: root/community/libstrophe/PKGBUILD
blob: d2231886e1f783f4f528802e3802c611b5c2480a (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
# $Id: PKGBUILD 107463 2014-03-17 12:50:07Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=libstrophe
pkgver=20131107
pkgrel=1
pkgdesc='Simple, lightweight C library for writing XMPP clients'
arch=('i686' 'x86_64')
url='http://strophe.im/libstrophe/'
license=('MIT' 'GPL3')
makedepends=('git' 'doxygen' 'expat')
checkdepends=('check')
options=('staticlibs')
source=(git://github.com/strophe/libstrophe.git#commit=d408eaf)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git log -1 --format="%cd" --date=short | tr -d '-'
}

prepare() {
  cd $pkgname
  ./bootstrap.sh
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make
  doxygen
}

check() {
  make -C $pkgname check
}

package() {
  make -C $pkgname DESTDIR="$pkgdir" install
}