mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 21:37:13 +08:00
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# $Id: PKGBUILD 61617 2009-12-20 10:45:10Z jgc $
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
# Contributor: onestep_ua <onestep@ukr.net>
|
|
|
|
pkgname=consolekit
|
|
pkgver=0.4.1
|
|
pkgrel=2
|
|
pkgdesc="A framework for defining and tracking users, login sessions, and seats"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
|
|
license=('GPL')
|
|
depends=('polkit>=0.95' 'zlib' 'libx11>=1.2.2')
|
|
makedepends=('pkgconfig' 'xmlto' 'docbook-xsl')
|
|
options=(!libtool)
|
|
source=(http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${pkgver}.tar.bz2
|
|
pam-foreground-compat.ck
|
|
nodaemon.patch
|
|
reorder-initialization.patch)
|
|
md5sums=('48eda4483cc97841d5f88e8e003eb6d7'
|
|
'a8a4de71d9b0549b8143e5f6c2a36fc7'
|
|
'a5bfd56bc89411ff5bb18276a68cb212'
|
|
'99fa8cb1bf232050cc0c076378e216c5')
|
|
|
|
build() {
|
|
cd "${srcdir}/ConsoleKit-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/nodaemon.patch" || return 1
|
|
patch -Np1 -i "${srcdir}/reorder-initialization.patch" || return 1
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/ConsoleKit \
|
|
--enable-pam-module \
|
|
--enable-docbook-docs || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
install -m755 "${srcdir}/pam-foreground-compat.ck" "${pkgdir}/usr/lib/ConsoleKit/run-session.d/" || return 1
|
|
}
|