mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Maintainer: Ram-Z <samir.benmendil[at]gmail[dot]com>
|
|
|
|
pkgname=polkit
|
|
pkgver=0.112
|
|
pkgrel=2
|
|
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' 'js17')
|
|
makedepends=('intltool>=0.41.1' 'gobject-introspection>=0.9.5' 'docbook-xsl')
|
|
options=('!libtool')
|
|
install=polkit.install
|
|
source=("http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz"
|
|
'polkit.pam')
|
|
md5sums=('b0f2fa00a55f47c6a5d88e9b73f80127'
|
|
'6564f95878297b954f0572bc1610dd15')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/polkit-1 \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--enable-libsystemd-login=yes \
|
|
--disable-static \
|
|
--with-os-type=chakra
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${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
|
|
}
|