upgpkg: sbcl 2.2.4-1
[arch-packages.git] / pacrunner / trunk / PKGBUILD
blob87f2e32b33113da8956bb353f12af3e33d84e05f
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=pacrunner
4 pkgver=0.18
5 pkgrel=1
6 pkgdesc="Proxy configuration daemon"
7 arch=(x86_64)
8 url="https://git.kernel.org/pub/scm/network/connman/pacrunner.git"
9 license=(GPL2 LGPL2.1)
10 depends=(glib2 dbus curl)
11 makedepends=(git)
12 _commit=364ba8d09065067b71725f851a5bc624b9eb453b  # tags/0.18^0
13 source=("git+https://git.kernel.org/pub/scm/network/connman/pacrunner.git#commit=$_commit")
14 sha256sums=('SKIP')
16 pkgver() {
17   cd $pkgname
18   git describe --tags | sed 's/-/+/g'
21 prepare() {
22   cd $pkgname
23   ./bootstrap
26 build() {
27   cd $pkgname
28   ./configure \
29     --prefix=/usr \
30     --sysconfdir=/etc \
31     --localstatedir=/var \
32     --sbindir=/usr/bin \
33     --libexecdir=/usr/lib \
34     --with-dbusconfdir=/usr/share \
35     --enable-pie \
36     --enable-duktape \
37     --enable-curl
38   make
41 package() {
42   cd $pkgname
43   make DESTDIR="$pkgdir" install
45   install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/system/pacrunner.service" <<END
46 [Unit]
47 Description=Proxy configuration daemon
48 Before=network.target
49 Wants=network.target
51 [Service]
52 Type=dbus
53 BusName=org.pacrunner
54 ExecStart=/usr/bin/pacrunner
56 [Install]
57 WantedBy=multi-user.target
58 END
60   install -Dm644 /dev/stdin "$pkgdir/usr/share/dbus-1/system-services/org.pacrunner.service" <<END
61 [D-BUS Service]
62 Name=org.pacrunner
63 Exec=/usr/bin/pacrunner
64 User=root
65 SystemdService=pacrunner.service
66 END
69 # vim:set sw=2 et: