blob: dfc9c65ee2c1a8a462245341dc068f15daa1dd23 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=elogind
pkgver=219.12
pkgrel=2
pkgdesc="The systemd project's logind, extracted to a standalone package"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/wingo/elogind"
license=('GPL')
depends=('dbus' 'polkit' 'libudev.so')
makedepends=('libcap' 'intltool' 'libtool' 'gperf' 'gtk-doc' 'libseccomp')
conflicts=('systemd-sysvcompat')
options=('!libtool')
install=elogind.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
'elogind-docs.patch'
'elogind-lrt.patch'
"elogind-219.12-session.patch"
"elogind-219.12-login1-perms.patch"
"elogind-219.12-gperf.patch"
"elogind-219.12-glibc.patch"
"elogind.conf"
"elogind.init")
sha256sums=('80241494f5c794e8501ccf570ac805275ace368755780f38a18762fd06243f95'
'cafea7a13159dee700902e3837aab015d9521dfe122840faf2d909b5dc02229e'
'a9227ed4e97117ab5751de38c19813560a12f51379ccd882a89e7ef9842659ac'
'c63ef9869fa4bc38075dc9f9ef113b6b8c05ae2af2616da68219e0a364dea574'
'cef5dda99a51a42bc36d1a946d5a21a830bf0f44ed3f447542ec57c1424e0053'
'9f6437abeba2f17d378482e262504f269998d54c6adb16eb16c4eda738065074'
'5e7dfcf695c15a02d8151541c50e26c9e3140f5626d95bbec366aada5ce095d5'
'344db76bf8aadfba4363c63aacd93c945a647bd5e425d756cbfd9cb4453afc66'
'3e3ca3d384b9ced34360e697b2a6102b173731c8cf4f91e2901df68b33d73d44')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np 1 -i ${srcdir}/elogind-docs.patch
patch -Np 1 -i ${srcdir}/elogind-lrt.patch
patch -Np 1 -i ${srcdir}/elogind-219.12-session.patch
patch -Np 1 -i ${srcdir}/elogind-219.12-login1-perms.patch
patch -Np 1 -i ${srcdir}/elogind-219.12-gperf.patch
patch -Np 1 -i ${srcdir}/elogind-219.12-glibc.patch
autoreconf -vim
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
intltoolize
./configure \
--sysconfdir=/etc \
--prefix=/usr \
--libexecdir=/usr/lib
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm755 ${srcdir}/elogind.init ${pkgdir}/etc/init.d/elogind
install -Dm755 ${srcdir}/elogind.conf ${pkgdir}/etc/conf.d/elogind
}
|