summaryrefslogtreecommitdiff
path: root/extra/apr/PKGBUILD
blob: b0d3f4d96f99b50e3a5d0b35f484b68d0aceb916 (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 72235 2010-03-13 20:22:25Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgname=apr
pkgver=1.4.2
pkgrel=1
pkgdesc="The Apache Portable Runtime"
arch=('i686' 'x86_64')
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=('4b00e8f70c067893d075577962656b35')

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
}