summaryrefslogtreecommitdiff
path: root/pcr/elogind/PKGBUILD
blob: 5c6ed3d8d242a78adf2309b16a4ae0044878b450 (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 (Manjaro): artoo <artoo@manjaro.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=elogind
pkgver=219.14
pkgrel=1
pkgdesc="The systemd project's logind, extracted to a standalone package"
arch=('i686' 'x86_64')
url="https://github.com/wingo/elogind"
license=('GPL')
groups=('openrc-desktop')
depends=('dbus' 'polkit' 'libudev.so')
makedepends=('libcap' 'intltool' 'libtool' 'gperf' 'gtk-doc')
conflicts=('systemd' 'systemd-sysvcompat')
options=('!libtool')
install=elogind.install
_commit=6d224ff665195f47c942599b21e0d959bc07ca8f
source=("$pkgname-${pkgver}.tar.gz::${url}/archive/${_commit}.tar.gz"
	#"$pkgname-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
	'elogind-docs.patch'
	'elogind-lrt.patch')
sha256sums=('52be61c26bcac7a34b91b6de997b403822c0626dad258ecf146018977b0c034f'
            'cafea7a13159dee700902e3837aab015d9521dfe122840faf2d909b5dc02229e'
            'a9227ed4e97117ab5751de38c19813560a12f51379ccd882a89e7ef9842659ac')

prepare() {
	cd $srcdir/$pkgname-${_commit} #$pkgver
	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}-${_commit} #${pkgver}
	intltoolize
	./configure \
		--sysconfdir=/etc \
		--prefix=/usr \
		--libexecdir=/usr/lib

	make
}

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