2015-11-26 13:34:37 +01:00
|
|
|
# Template file for 'elogind'
|
|
|
|
pkgname=elogind
|
2017-06-18 19:25:30 +02:00
|
|
|
version=229.6
|
2017-05-27 18:11:44 +02:00
|
|
|
revision=1
|
2015-11-26 13:34:37 +01:00
|
|
|
build_style=gnu-configure
|
2017-03-23 15:03:43 +01:00
|
|
|
hostmakedepends="automake libxslt intltool libtool pkg-config gperf docbook-xsl gettext-devel"
|
2017-04-17 19:34:20 +02:00
|
|
|
makedepends="libcap-devel libmount-devel libseccomp-devel libblkid-devel pam-devel gettext-devel eudev-libudev-devel glib-devel acl-devel"
|
2015-11-26 13:34:37 +01:00
|
|
|
depends="dbus"
|
2017-03-04 15:35:35 +01:00
|
|
|
short_desc="Standalone logind fork"
|
2015-11-26 13:34:37 +01:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
|
|
license="GPL-2, LGPL-2, MIT"
|
2017-03-23 11:14:52 +01:00
|
|
|
homepage="https://github.com/elogind/elogind"
|
|
|
|
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
|
2017-06-18 19:25:30 +02:00
|
|
|
checksum=19f08dba36509b3c5baf1f35d9ac1f5b473b550c081f63fa64ffbe8862ede7aa
|
2015-11-26 13:34:37 +01:00
|
|
|
conf_files="/etc/elogind/logind.conf"
|
2017-04-26 11:09:14 +02:00
|
|
|
configure_args+=" --disable-kdbus --disable-lto"
|
2015-11-26 13:34:37 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
2017-03-23 11:14:52 +01:00
|
|
|
autoreconf -fi
|
|
|
|
intltoolize
|
|
|
|
|
2015-11-26 13:34:37 +01:00
|
|
|
sed -i -e "s#^Exec=/bin/false#Exec=/usr/libexec/elogind/elogind.wrapper#" \
|
|
|
|
src/login/org.freedesktop.login1.service
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
ln -s libelogind.pc $DESTDIR/usr/lib/pkgconfig/libsystemd.pc
|
|
|
|
ln -s libelogind.pc $DESTDIR/usr/lib/pkgconfig/libsystemd-logind.pc
|
2017-03-03 15:49:30 +01:00
|
|
|
ln -sr $DESTDIR/usr/include/elogind $DESTDIR/usr/include/systemd
|
2015-11-26 13:34:37 +01:00
|
|
|
vinstall ./src/systemd/sd-id128.h 644 usr/include
|
|
|
|
vinstall ./src/systemd/_sd-common.h 644 usr/include
|
2017-03-23 11:14:52 +01:00
|
|
|
vinstall $FILESDIR/elogind.wrapper 755 usr/libexec/elogind
|
2017-03-04 15:35:35 +01:00
|
|
|
vlicense LICENSE.MIT
|
2015-11-26 13:34:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
elogind-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.la
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|