blob: 9ee2edba240bf58e0236c6b625be1eb797691451 (
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
74
75
76
77
78
79
80
81
82
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libproxy
pkgver=0.5.4
pkgrel=0
pkgdesc="Library handling all the details of proxy configuration"
url="https://github.com/libproxy/libproxy"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
curl-dev
duktape-dev
glib-dev
gobject-introspection-dev
gsettings-desktop-schemas-dev
meson
python3
vala
"
subpackages="
$pkgname-dev
$pkgname-doc
$pkgname-bin
"
source="$pkgname-$pkgver.tar.gz::https://github.com/libproxy/libproxy/archive/refs/tags/$pkgver.tar.gz
no-git.patch
"
# secfixes:
# 0.4.15-r9:
# - CVE-2020-26154
# 0.4.15-r8:
# - CVE-2020-25219
build() {
abuild-meson \
-Db_lto=true \
-Dtests="$(want_check && echo true || echo false)" \
-Ddocs=false \
. output
meson compile -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
bin() {
pkgdesc="Binary to test libproxy"
amove usr/bin/proxy
}
gnome3() {
pkgdesc="$pkgdesc (GNOME 3 integration)"
install_if="$pkgname=$pkgver-r$pkgrel gnome-desktop"
amove usr/lib/libproxy/$pkgver/modules/config_gnome3.so
amove usr/lib/pxgsettings
}
kde() {
pkgdesc="$pkgdesc (KDE integration)"
install_if="$pkgname=$pkgver-r$pkgrel plasma-desktop"
amove usr/lib/libproxy/$pkgver/modules/config_kde.so
}
pacrunner() {
pkgdesc="$pkgdesc (pacrunner integration)"
amove usr/lib/libproxy/$pkgver/modules/config_pacrunner.so
}
sha512sums="
4372570322682369f65317cbeb4e9b9dbcff3d8e5089a3bb3b8efa6cd461468a313793435fd5815fe18360984c44e6895c3c2a62e5e0b07eb0c3bf3532dbb1b2 libproxy-0.5.4.tar.gz
c850e55796fe82cee0a7315773af4f73f59c88783ad09a27a0f7514f6e03a37b6c04b5f995ffaaab47208e6ad6c5cce7be0fb2192ef523d6c9f0bb99be261f12 no-git.patch
"
|