blob: d8fc905e6b19e1db1649592be9fe7e3de59108e7 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libproxy
pkgver=0.4.12
pkgrel=0
pkgdesc="A library handling all the details of proxy configuration"
url="http://code.google.com/p/libproxy/"
arch="all"
license="LGPLv2+"
depends=
depends_dev="zlib-dev"
makedepends="cmake python-dev $depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-bin py-$pkgname:py"
source="http://libproxy.googlecode.com/files/libproxy-$pkgver.tar.gz
libproxy-0.4.7-unistd.patch
fix-includes.patch
"
_builddir="$srcdir"/libproxy-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBEXEC_INSTALL_DIR=lib \
-DMODULE_INSTALL_DIR=/usr/lib/libproxy/$pkgver/modules \
-DWITH_PERL=OFF \
./ || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/cmake "$subpkgdir"/usr/share/
}
bin() {
pkgdesc="Binary to test libproxy"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
py() {
pkgdesc="Binding for libproxy and python"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
md5sums="258d89cc052e0a3c09aa1f42d7f93045 libproxy-0.4.12.tar.gz
e90c03f296e553ace347b46f4fea3625 libproxy-0.4.7-unistd.patch
f9c217d3fdfd2e54ce34694d4b16df40 fix-includes.patch"
sha256sums="add9c5e30767c17b00f842f6280d818ece1eb23ab92e1fc68661204c95d7e22b libproxy-0.4.12.tar.gz
8d37357a63dcff4a410d411f10d6a375c74525caa4a5a3b496feceb340f83b62 libproxy-0.4.7-unistd.patch
7d7fc3948b5c928dce3e7b6c2e268af4209821e391b7d666c97b3c328074e97a fix-includes.patch"
sha512sums="dc9b79f0674681db39c6cfcc6c92112df4f1efdd2eb0750e30e3a2acea7015cafe1fc45e54ae371c95cd639ac86329a1a4c118856f5e18662e933dc5744683f6 libproxy-0.4.12.tar.gz
9929c308195bc59c1b9a7ddaaf708fb831da83c5d86d7ce122cb9774c9b9b16aef3c17fb721356e33a865de1af27db493f29a99d292e1e258cd0135218cacd32 libproxy-0.4.7-unistd.patch
e35b4f806e5f60e9b184d64dceae62e6e343c367ee96d7e461388f2665fe2ab62170d41848c9da5322bb1719eff3bfaecb273e40a97ce940a5e88d29d03bd8d9 fix-includes.patch"
|