summaryrefslogtreecommitdiff
path: root/extra/apr/PKGBUILD
blob: 997cba46268d108a8ed4a1c7581b4a2071409667 (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
# $Id: PKGBUILD 123387 2011-05-10 21:11:03Z foutrelis $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgname=apr
pkgver=1.4.4
pkgrel=1
pkgdesc="The Apache Portable Runtime"
arch=('i686' 'x86_64' 'mips64el')
url="http://apr.apache.org/"
depends=('util-linux-ng>=2.16')
options=('!libtool')
license=('APACHE')
source=(http://www.apache.org/dist/apr/apr-${pkgver}.tar.bz2)
md5sums=('daf5487c82dd7bec9c005c96f8cb01b1')

build() {
  cd "${srcdir}/apr-${pkgver}"
  export apr_cv_epoll_create1=no
  export apr_cv_dup3=no
  export apr_cv_accept4=no
  export apr_cv_sock_cloexec=no

  ./configure --prefix=/usr --includedir=/usr/include/apr-1 \
    --with-installbuilddir=/usr/share/apr-1/build \
    --enable-nonportable-atomics \
    --with-devrandom=/dev/urandom || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}