core/apr/PKGBUILD
2010-11-11 23:49:29 +01:00

36 lines
1013 B
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
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
}