mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
|
|
# Desktop Packages for Chakra, part of chakra-project.org
|
|
|
|
# Maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=polkit
|
|
pkgver=0.110
|
|
pkgrel=1
|
|
pkgdesc="Application development toolkit for controlling system-wide privileges"
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
url="http://www.freedesktop.org/wiki/Software/polkit"
|
|
depends=('glib2' 'pam' 'expat>=2.0.1' 'systemd' 'js')
|
|
makedepends=('intltool>=0.41.1' 'gobject-introspection>=0.9.5' 'docbook-xsl')
|
|
replaces=('consolekit')
|
|
provides=('consolekit')
|
|
conflicts=('consolekit' 'hal' 'hal-cups-utils')
|
|
options=('!libtool')
|
|
install=polkit.install
|
|
source=("http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz"
|
|
'polkit.pam')
|
|
md5sums=('06e0d3b72e566ac277fc35c8206d2a28'
|
|
'6564f95878297b954f0572bc1610dd15')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--disable-static --with-os-type=chakra
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
chown 102 "$pkgdir/etc/polkit-1/rules.d"
|
|
chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
|
|
|
|
install -m644 "${srcdir}/polkit.pam" "${pkgdir}/etc/pam.d/polkit-1"
|
|
}
|