summaryrefslogtreecommitdiff
path: root/extra/serf/PKGBUILD
blob: 38d4ea6e428cf9d798866a76c4c0715185d269a0 (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
# $Id: PKGBUILD 179622 2013-03-08 20:38:44Z eric $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgname=serf
pkgver=1.2.0
pkgrel=1
pkgdesc="High-performance asynchronous HTTP client library"
url="http://code.google.com/p/serf/"
arch=('i686' 'x86_64' 'mips64el')
license=('Apache')
depends=('apr' 'apr-util' 'openssl' 'zlib')
source=(http://serf.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('30b29bd9214d50887abcc20cf82096aaaf5d1d61')
options=('!libtool')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr --with-openssl=/usr
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  rm "${pkgdir}"/usr/lib/libserf-1.a
}