summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da2b678a0802998fd0e78952108ca4ee6211c5cc (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
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Chris Cromer <chris@cromer.cl>
# Contributor: artoo <artoo@manjaro.org>

pkgname=elogind-git
_pkgname=elogind
pkgver=219.14.6d224ff
pkgrel=2
pkgdesc="The systemd project's logind, extracted to a standalone package for use on systems without systemd installed"
arch=('i686' 'x86_64')
url="https://github.com/wingo/elogind.git"
license=('GPL')
depends=('dbus' 'polkit' 'libudev.so')
makedepends=('git' 'libcap' 'intltool' 'libtool' 'gperf' 'gtk-doc')
provides=('elogind')
conflicts=('elogind')
options=('!libtool')
install=elogind.install
backup=('etc/elogind/logind.conf')
source=("git+${url}"
	'elogind-docs.patch'
	'elogind-lrt.patch')
sha256sums=(SKIP
            'cafea7a13159dee700902e3837aab015d9521dfe122840faf2d909b5dc02229e'
            'a9227ed4e97117ab5751de38c19813560a12f51379ccd882a89e7ef9842659ac')

prepare() {
	cd $srcdir/$_pkgname
	patch -Np 1 -i $srcdir/elogind-docs.patch
	patch -Np 1 -i $srcdir/elogind-lrt.patch
	sed -e "s|/bin/false|/usr/lib/elogind/elogind|" \
		-i src/login/org.freedesktop.login1.service
	autoreconf -vim
}

build() {
	cd $srcdir/${_pkgname}
	intltoolize
	./configure \
		--sysconfdir=/etc \
		--prefix=/usr \
		--libexecdir=/usr/lib

	make
}

package() {
	cd $srcdir/${_pkgname}
	make DESTDIR="${pkgdir}" install
}