void-packages/srcpkgs/elogind/template

48 lines
1.5 KiB
Bash
Raw Normal View History

2015-11-26 12:34:37 +00:00
# Template file for 'elogind'
pkgname=elogind
2017-04-17 06:57:38 +00:00
version=226.5
2017-04-17 17:34:20 +00:00
revision=2
2015-11-26 12:34:37 +00:00
build_style=gnu-configure
hostmakedepends="automake libxslt intltool libtool pkg-config gperf docbook-xsl gettext-devel"
2017-04-17 17:34:20 +00:00
makedepends="libcap-devel libmount-devel libseccomp-devel libblkid-devel pam-devel gettext-devel eudev-libudev-devel glib-devel acl-devel"
2015-11-26 12:34:37 +00:00
depends="dbus"
2017-03-04 14:35:35 +00:00
short_desc="Standalone logind fork"
2015-11-26 12:34:37 +00:00
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2, LGPL-2, MIT"
2017-03-23 10:14:52 +00:00
homepage="https://github.com/elogind/elogind"
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
2017-04-17 06:57:38 +00:00
checksum=5d79cd27b8dfaa163ac29e7b2d2e2f569e170701c1486720a9b6d9d585cad06f
2015-11-26 12:34:37 +00:00
LDFLAGS="-lrt"
conf_files="/etc/elogind/logind.conf"
2017-04-17 17:34:20 +00:00
configure_args+=" --disable-kdbus"
2015-11-26 12:34:37 +00:00
pre_configure() {
2017-03-23 10:14:52 +00:00
autoreconf -fi
intltoolize
2015-11-26 12:34:37 +00: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
ln -sr $DESTDIR/usr/include/elogind $DESTDIR/usr/include/systemd
2015-11-26 12:34:37 +00:00
vinstall ./src/systemd/sd-id128.h 644 usr/include
vinstall ./src/systemd/_sd-common.h 644 usr/include
2017-03-23 10:14:52 +00:00
vinstall $FILESDIR/elogind.wrapper 755 usr/libexec/elogind
2017-03-04 14:35:35 +00:00
vlicense LICENSE.MIT
2015-11-26 12:34:37 +00: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
}
}