Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[indicator-session] Bundle ConsoleKit for user switching to work

  • Loading branch information...
commit ff1156fe20b92c0441bab40855498247f0a31ce5 1 parent 4eb3b14
Andrew Gunnerson authored
Showing with 25 additions and 1 deletion.
  1. +25 −1 indicator-session/PKGBUILD
26 indicator-session/PKGBUILD
View
@@ -6,7 +6,7 @@ pkgname=indicator-session
_actual_ver=12.10.5
_extra_ver=daily13.03.08
pkgver=${_actual_ver}${_extra_ver}
-pkgrel=103
+pkgrel=104
pkgdesc="Indicator showing session management, status and user switching"
arch=('i686' 'x86_64')
url="https://launchpad.net/indicator-session"
@@ -15,16 +15,20 @@ depends=('libindicator3' 'libdbusmenu-gtk3' 'dconf')
makedepends=('intltool')
checkdepends=('dbus-test-runner' 'gtest-ubuntu' 'xorg-gtest' 'xorg-util-macros')
optdepends=('lightdm: support for lightdm')
+provides=("consolekit=0.4.5")
+conflicts=('consolekit')
groups=('unity')
options=('!libtool')
install=${pkgname}.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/indicator-session_${_actual_ver}${_extra_ver}.orig.tar.gz"
+ "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-0.4.5.tar.bz2"
'0001_Lock_Screen_Live_CD_Detection.patch'
'0002_There_is_no_help.patch'
'0003_Link_Against_pthread.patch'
'0004_Lock_Screen_Guest_Session_Detection.patch'
'revert_r382.patch')
sha512sums=('2c97c158af4e33890db7bba1a2a20702637b6906015e7ede7d5ea7c73226b86856d1fb39298f665c1d04d6d8614e758236633681d665baffff9a44be0a91cddc'
+ '9f969aeb2199810f73cdf111c7af38231d09b1c04d71209b2fa9c3ab7d39e3ca018b6aa0088abf1fafbf19550d2f844eeee8b3e298970959af1c88a7b366be80'
'f0e000995339e8a722f3a863fea61032ca9ac262c1760c1b647f76f9eae3dc081ae8025607936d094fc6a58738f6bcaaa4bc9ee55ed9439f0eb213507d729e5d'
'f00ea3d3c00da05211e869fbde613807671e2faf712f832aa47100486b5991ed00e0d301f0e05c56090f37fd556663de87f912b7af5e762f7925d21d2719f99d'
'73cd938c4dddca0de9ef09e2a90ff4f5d132b1668f682e1bffa4fe3faafcb8df93de1a88b5bb324a75ac3e3013b0b13934b704b92cef4860de120db84bae8f2e'
@@ -32,6 +36,18 @@ sha512sums=('2c97c158af4e33890db7bba1a2a20702637b6906015e7ede7d5ea7c73226b86856d
'0bae670655e2cebd82f702bd7e804828729f0a23eac8212637875ebe19b56151066add500e6580e856f6820dc4304327b609a0b5fe82b7c119769373eaa38018')
build() {
+ cd "${srcdir}/ConsoleKit-0.4.5/"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/ConsoleKit \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system \
+ --enable-pam-module \
+ --with-pam-module-dir=/usr/lib/security
+
+ make
+
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
patch -p0 -i "${srcdir}/0001_Lock_Screen_Live_CD_Detection.patch"
@@ -48,12 +64,20 @@ build() {
}
check() {
+ cd "${srcdir}/ConsoleKit-0.4.5/"
+
+ make check
+
cd "${srcdir}/${pkgbase}-${_actual_ver}${_extra_ver}/"
env -u LD_PRELOAD make check
}
package() {
+ cd "${srcdir}/ConsoleKit-0.4.5/"
+
+ make DESTDIR="${pkgdir}/" install
+
cd "${srcdir}/${pkgbase}-${_actual_ver}${_extra_ver}/"
make DESTDIR="${pkgdir}/" install
Please sign in to comment.
Something went wrong with that request. Please try again.