blob: 68a33713ab93d3cf5da95e8d58a28003dc47fc00 (
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
65
66
67
68
69
70
71
72
73
74
|
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_pkgname=elogind
_commit=9226293c85ae14b23a41657c59edd8b22570e532
pkgbase=elogind
pkgname=('elogind' 'libelogind')
pkgver=226
pkgrel=4
pkgdesc="The systemd project's logind, extracted to a standalone package"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/elogind/elogind"
license=('GPL')
makedepends=('intltool' 'libtool' 'gperf' 'gtk-doc' 'dbus-elogind' 'git' 'libcap')
options=('!libtool')
source=("elogind-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz"
"elogind-docs.patch")
sha256sums=('65b018fb6bd28b3d66f2a45b59ceacea5e0514427c7754a6b439f9668b4342d1'
'25643e563250b0d322f817288cbe999f1cc2e4804c875725bb92fe5094a902b4')
prepare() {
cd ${_pkgname}-${_commit}
patch -Np 1 -i ${srcdir}/elogind-docs.patch
autoreconf -vim
}
build() {
cd ${_pkgname}-${_commit}
intltoolize
./configure \
--sysconfdir=/etc \
--prefix=/usr \
--enable-split-usr \
--enable-smack \
--disable-kdbus \
--with-rootlibdir=/usr/lib \
--with-udevrulesdir=/usr/lib/udev/rules.d \
--libexecdir=/usr/lib
make
}
package_elogind() {
pkgdesc="The systemd project's logind, extracted to a standalone package"
provides=("elogind=${pkgver}")
depends=('libelogind' 'pam' 'acl' 'dbus-elogind')
conflicts=('systemd-sysvcompat' 'consolekit')
# replaces=('consolekit')
optdepends=('elogind-openrc: elogind initscript'
'dbus-openrc: dbus initscript'
'polkit-elogind: polkit with elogind session tracking')
install=elogind.install
cd ${_pkgname}-${_commit}
make DESTDIR="${pkgdir}" install
mkdir ${srcdir}/_libelogind
mv -v ${pkgdir}/usr/lib/pkgconfig ${srcdir}/_libelogind
mv -v ${pkgdir}/usr/include/ ${srcdir}/_libelogind
mv -v ${pkgdir}/usr/lib/libelogind*.so* ${srcdir}/_libelogind
}
package_libelogind(){
pkgdesc="elogind client libraries"
provides=('libelogind.so' "libelogind=${pkgver}")
depends=('libcap')
cd ${_pkgname}-${_commit}
install -dm755 ${pkgdir}/usr/lib
mv ${srcdir}/_libelogind/include ${pkgdir}/usr
mv ${srcdir}/_libelogind/pkgconfig ${pkgdir}/usr/lib
mv ${srcdir}/_libelogind/libelogind*.so* ${pkgdir}/usr/lib
}
|