Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
[indicator-session] Bundle ConsoleKit for user switching to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-Long Chen committed Mar 24, 2013
1 parent 4eb3b14 commit ff1156f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion indicator-session/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -15,23 +15,39 @@ 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'
'3b4a496f67d0020816184b816becdf8ca837aec35d1cd2dd4a2a4f11b4824f7d5aaca9fbeca87f2e00e66133376bfc9af6ba7a3334bcdaaed216ad7b5a03abf8'
'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"
Expand All @@ -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
Expand Down

0 comments on commit ff1156f

Please sign in to comment.