summaryrefslogtreecommitdiff
path: root/extra/accountsservice/PKGBUILD
blob: 4161dfb34e5bf11ef4b60f306d83d195dbfc8b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 199022 2013-11-06 14:06:17Z jgc $
# Maintainer: Ionut Biru <ibiru@archlinux.org>

pkgname=accountsservice
pkgver=0.6.35
pkgrel=2
pkgdesc="D-Bus interface for user account query and manipulation"
arch=(i686 x86_64 'mips64el')
url="http://www.freedesktop.org/software/accountsservice/"
license=('GPL3')
depends=('glib2' 'polkit' 'systemd')
makedepends=('intltool' 'gobject-introspection')
source=($url/$pkgname-$pkgver.tar.xz
        avoid-deleting-the-root-user.patch)
md5sums=('3a81133e95faafb603de4475802cb06a'
         '4970e77c3c0d56e513f9a5f29fdacd2c')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../avoid-deleting-the-root-user.patch
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/accountsservice \
    --with-systemdsystemunitdir=/usr/lib/systemd/system \
    --localstatedir=/var --disable-static --enable-systemd
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: