void-packages/srcpkgs/polkit/template

64 lines
1.9 KiB
Bash
Raw Normal View History

# Template file for 'polkit'
pkgname=polkit
2013-09-19 06:14:02 +00:00
version=0.112
revision=10
build_pie=yes
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)
$(vopt_enable systemd) $(vopt_enable systemd libsystemd-login)
--disable-static --with-authfw=pam --with-os-type=void --with-mozjs=mozjs-17.0"
short_desc="Authorization Toolkit"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-01-07 13:08:48 +00:00
homepage="http://www.freedesktop.org/wiki/Software/polkit"
2011-08-18 07:14:31 +00:00
license="GPL-2"
2015-03-08 18:31:59 +00:00
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.gz"
2013-09-19 06:14:02 +00:00
checksum=d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
2012-11-20 23:02:33 +00:00
hostmakedepends="automake libtool gettext-devel pkg-config intltool libxslt
docbook-xsl glib-devel gtk-doc gobject-introspection"
makedepends="libglib-devel expat-devel pam-devel mozjs17-devel
$(vopt_if systemd systemd-devel)"
system_accounts="polkitd"
make_dirs="
/etc/polkit-1/rules.d 0700 polkitd polkitd
/usr/share/polkit-1/rules.d 0700 polkitd polkitd"
2011-10-11 01:30:56 +00:00
# Package build options
build_options="gir systemd"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
pre_configure() {
autoreconf -fi
# Drop requirement of /sys/fs/cgroup/systemd test in configure... WTF.
sed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
}
post_configure() {
if [ "$CROSS_BUILD" ]; then
sed -e "s,/usr/include/js-17.0,${XBPS_CROSS_BASE}/usr/include/js-17.0," -i src/polkitbackend/Makefile
fi
}
post_install() {
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
fi
}
polkit-devel_package() {
depends="libglib-devel polkit>=${version}_${revision}"
2013-05-30 21:48:36 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
2013-09-19 06:14:02 +00:00
vmove "usr/lib/*.so"
}
}