2015-05-13 13:23:55 +00:00
|
|
|
# Template file for 'drawterm'
|
|
|
|
pkgname=drawterm
|
|
|
|
version=0.0.20130621
|
2015-11-28 08:09:11 +00:00
|
|
|
revision=4
|
2015-05-13 13:23:55 +00:00
|
|
|
_hghash=b4e2f62f737e
|
2015-11-28 08:09:11 +00:00
|
|
|
wrksrc="rsc-${pkgname}-${_hghash}"
|
2015-05-13 13:23:55 +00:00
|
|
|
makedepends="libX11-devel libXt-devel"
|
|
|
|
short_desc="Connect to Plan 9 CPU servers from other operating systems"
|
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2015-09-30 16:14:55 +00:00
|
|
|
license="LPL-1.02"
|
2015-05-13 13:23:55 +00:00
|
|
|
homepage="https://bitbucket.org/rsc/drawterm/overview"
|
|
|
|
distfiles="https://bitbucket.org/rsc/drawterm/get/$_hghash.tar.gz"
|
|
|
|
checksum=6b57577d521a226beaebc5a5a6ee5c9b0aed632daa7126bfd3039dea10c83d99
|
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local _arch;
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*) _arch=386 ;;
|
|
|
|
x86_64*) _arch=amd64 ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
sed -i 's%$(CFLAGS)%$(_CFLAGS)%' Make* */Makefile
|
|
|
|
sed -i -e 's%^CFLAGS=%_CFLAGS=$(CFLAGS) %' \
|
|
|
|
-e "s%arch=.*%arch=$_arch; \\\\%" Make.unix
|
|
|
|
}
|
2015-11-28 08:09:11 +00:00
|
|
|
do_build() {
|
|
|
|
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="-lpthread $LDFLAGS" CONF=unix ${makejobs}
|
|
|
|
}
|
2015-05-13 13:23:55 +00:00
|
|
|
do_install() {
|
|
|
|
vbin drawterm
|
|
|
|
vlicense LICENSE
|
|
|
|
vman $FILESDIR/drawterm.1
|
|
|
|
}
|