summaryrefslogtreecommitdiffstats
path: root/abs/extra/libproxy/PKGBUILD
blob: 9fb8e8550bae5b31159fe00852baf5c7075624ef (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
41
42
43
44
45
46
47
# $Id: PKGBUILD 24494 2009-01-17 20:42:01Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libproxy
pkgver=0.4.7
pkgrel=2
pkgdesc="A library that provides automatic proxy configuration management"
arch=(i686 x86_64)
license=('LGPL')
depends=('gcc-libs')
optdepends=('kdelibs: KDE configuration module'
            'networkmanager: NetworkManager configuration module'
            'perl: Perl bindings'
            'python2: Python bindings')
makedepends=('cmake' 'automoc4' 'python2' 'perl')
url="http://libproxy.googlecode.com"
source=(http://libproxy.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
        libproxy-0.4.7-unistd.patch)
options=('!libtool')
md5sums=('509e03a488a61cd62bfbaf3ab6a2a7a5'
         'e90c03f296e553ace347b46f4fea3625')

build() {
  cd "${srcdir}"

  # Fix build with GCC 4.7 (patch from Fedora)
  patch -d "${pkgname}-${pkgver}" -Np1 -i \
    "${srcdir}/libproxy-0.4.7-unistd.patch"

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIBEXEC_INSTALL_DIR=/usr/lib/libproxy \
    -DCMAKE_SKIP_RPATH=ON \
    -DPERL_VENDORINSTALL=yes \
    -DCMAKE_BUILD_TYPE=Release \
    -DWITH_WEBKIT=OFF \
    -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
    -DCMAKE_C_FLAGS="${CFLAGS}"
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}" install
}