drawterm: fix as-needed issue and simplify.

This commit is contained in:
Juan RP 2015-11-28 09:09:11 +01:00
parent f11ecc7df4
commit 605122b1b2

View file

@ -1,8 +1,9 @@
# Template file for 'drawterm' # Template file for 'drawterm'
pkgname=drawterm pkgname=drawterm
version=0.0.20130621 version=0.0.20130621
revision=3 revision=4
_hghash=b4e2f62f737e _hghash=b4e2f62f737e
wrksrc="rsc-${pkgname}-${_hghash}"
makedepends="libX11-devel libXt-devel" makedepends="libX11-devel libXt-devel"
short_desc="Connect to Plan 9 CPU servers from other operating systems" short_desc="Connect to Plan 9 CPU servers from other operating systems"
maintainer="Enno Boland <gottox@voidlinux.eu>" maintainer="Enno Boland <gottox@voidlinux.eu>"
@ -10,11 +11,6 @@ license="LPL-1.02"
homepage="https://bitbucket.org/rsc/drawterm/overview" homepage="https://bitbucket.org/rsc/drawterm/overview"
distfiles="https://bitbucket.org/rsc/drawterm/get/$_hghash.tar.gz" distfiles="https://bitbucket.org/rsc/drawterm/get/$_hghash.tar.gz"
checksum=6b57577d521a226beaebc5a5a6ee5c9b0aed632daa7126bfd3039dea10c83d99 checksum=6b57577d521a226beaebc5a5a6ee5c9b0aed632daa7126bfd3039dea10c83d99
wrksrc=rsc-$pkgname-$_hghash
build_style=gnu-makefile
make_build_args="CONF=unix"
broken_as_needed=yes
LDFLAGS="-lpthread"
only_for_archs="i686 i686-musl x86_64 x86_64-musl" only_for_archs="i686 i686-musl x86_64 x86_64-musl"
do_configure() { do_configure() {
@ -29,7 +25,9 @@ do_configure() {
sed -i -e 's%^CFLAGS=%_CFLAGS=$(CFLAGS) %' \ sed -i -e 's%^CFLAGS=%_CFLAGS=$(CFLAGS) %' \
-e "s%arch=.*%arch=$_arch; \\\\%" Make.unix -e "s%arch=.*%arch=$_arch; \\\\%" Make.unix
} }
do_build() {
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="-lpthread $LDFLAGS" CONF=unix ${makejobs}
}
do_install() { do_install() {
vbin drawterm vbin drawterm
vlicense LICENSE vlicense LICENSE