mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:37:13 +08:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=libproxy
|
|
pkgver=0.4.11
|
|
pkgrel=1
|
|
pkgdesc="A library that provides automatic proxy configuration management"
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
depends=('gcc-libs')
|
|
optdepends=('kdelibs: KDE configuration module'
|
|
'networkmanager: NetworkManager configuration module'
|
|
'perl: Perl bindings'
|
|
'python2: Python bindings')
|
|
makedepends=('cmake' 'networkmanager' 'automoc4' 'python2' 'kdelibs' 'perl')
|
|
url="http://libproxy.googlecode.com"
|
|
source=(http://libproxy.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
|
|
options=('!libtool')
|
|
md5sums=('3cd1ae2a4abecf44b3f24d6639d2cd84')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DLIBEXEC_INSTALL_DIR=/usr/lib/libproxy \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DPERL_VENDORINSTALL=yes \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
|
|
-DCMAKE_C_FLAGS="${CFLAGS}" \
|
|
..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|