From 62ec424bfe4b5f81122324ee0c0f5c0281922517 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 28 Feb 2014 10:00:00 +0100 Subject: [PATCH] libcaca: cross build support. --- srcpkgs/libcaca/template | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/srcpkgs/libcaca/template b/srcpkgs/libcaca/template index 33194e9e337..48c6287ecdb 100644 --- a/srcpkgs/libcaca/template +++ b/srcpkgs/libcaca/template @@ -1,30 +1,24 @@ # Template file for 'libcaca' pkgname=libcaca version=0.99.beta18 -revision=4 +revision=5 build_style=gnu-configure +hostmakedepends="libtool automake pkg-config" short_desc="Graphics library that outputs text instead of pixels" -maintainer="pancake " +maintainer="Juan RP " makedepends="ncurses-devel" homepage="http://caca.zoy.org/wiki/libcaca" license="WTFPL" distfiles="http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz" checksum=77ea06633f4a6022dccd4f76c1823e167a40cb05308fc1c7ea0fa1f80f6c33a1 -if [ "$CROSS_BUILD" ]; then - hostmakedepends="libtool automake pkg-config" - pre_configure() { - sed -i -e s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS, configure.ac - autoreconf -fi - } -fi - -post_install() { - rm -f ${DESTDIR}/usr/lib/*.la +pre_configure() { + sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac + autoreconf -fi } libcaca-devel_package() { - depends="libcaca>=${version}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/bin/caca-config