void-packages/srcpkgs/xcolorsel/template

26 lines
834 B
Bash

# Template file for 'xcolorsel'
pkgname=xcolorsel
version=1.1a
revision=4
build_style=gnu-makefile
make_build_args="HELPFILE=/usr/share/X11/Xcolorsel.help"
make_install_args="install.man ${make_build_args}"
hostmakedepends="imake xorg-cf-files gccmakedep groff"
makedepends="libXaw-devel"
depends="rgb"
short_desc="Display and grab colors in X"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://packages.debian.org/stable/x11/xcolorsel"
distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
nocross=yes
do_configure() {
xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
sed -i '/INSTALL/s,\$(XPALDIR)/Xcolorsel.help,$(HELPFILE),' Makefile
}
pre_build() {
export LOCAL_LDFLAGS="$LDFLAGS"
}