void-packages/srcpkgs/sessreg/template
2019-08-10 21:16:25 +02:00

26 lines
766 B
Bash

# Template build file for 'sessreg'.
pkgname=sessreg
version=1.1.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libX11-devel"
short_desc="Manage utmp/wtmp entries for xdm"
homepage="http://xorg.freedesktop.org"
license="MIT"
maintainer="Juan RP <xtraeme@voidlinux.org>"
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
checksum=dfcb9e954273ace63879aec053c7880466f8755752a35aa9ced3fa5f04fd2c33
case "$XBPS_TARGET_MACHINE" in
*-musl)
# musl does not define _WTMPX_FILE, use WTMP_FILE instead.
CFLAGS="-D_WTMPX_FILE=WTMP_FILE -D_PATH_WTMPX=_PATH_WTMP"
# musl does not define _UTMPX_FILE, use UTMP_FILE instead.
CFLAGS+=" -D_UTMPX_FILE=UTMP_FILE -D_PATH_UTMPX=_PATH_UTMP"
;;
esac
post_install() {
vlicense COPYING
}