blob: dbbec1f9e3533b20fe0475c55147405346c86396 (
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
|
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor (Arch): Jan de Groot <jgc@archlinux.org>
# Contributor (Arch): jtts <jussaar@mbnet.fi>
# Contributor (Arch): GordonGR <gordongr@freemail.gr>
pkgname=lib32-polkit
pkgver=0.116
pkgrel=1
pkgrel+=.nonsystemd1
pkgdesc='Application development toolkit for controlling system-wide privileges'
arch=(x86_64)
license=(LGPL)
url=https://www.freedesktop.org/wiki/Software/polkit/
depends=(
lib32-expat
lib32-glib2
lib32-pam
polkit
)
makedepends=(
autoconf-archive
git
gobject-introspection
gtk-doc
intltool
)
_commit='941e9329f8d3d43ace8335d206365b212824e686' # tags/0.116^0
source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
elogind-configure-fix.patch)
sha256sums=('SKIP'
'd90b2a95aa3e9e1ebf9369c038c144e04900e095c5405bc4ba4901c31bf3f59b')
prepare() {
cd polkit
patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd polkit
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib32 \
--localstatedir=/var \
--libexecdir=/usr/lib32 \
--disable-gtk-doc \
--disable-static \
--enable-libsystemd-login='no' \
--enable-libelogind='no' \
--with-systemdsystemunitdir='no' \
--with-os-type='redhat'
# sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make -C src/polkit polkitenumtypes.h
make -C src/polkit libpolkit-gobject-1.la
make -C src/polkitagent polkitagentenumtypes.h marshal.stamp
make -C src/polkitagent libpolkit-agent-1.la
}
package() {
cd polkit
make -C src/polkit DESTDIR="${pkgdir}" lib_LTLIBRARIES=libpolkit-gobject-1.la install-libLTLIBRARIES
make -C src/polkitagent DESTDIR="${pkgdir}" lib_LTLIBRARIES=libpolkit-agent-1.la install-libLTLIBRARIES
make -C data DESTDIR="${pkgdir}" install-pkgconfigDATA
}
# vim: ts=2 sw=2 et:
|