2013-03-26 11:43:28 +00:00
|
|
|
# Template file for 'libcaca'
|
|
|
|
pkgname=libcaca
|
|
|
|
version=0.99.beta18
|
2013-07-28 08:46:33 +00:00
|
|
|
revision=4
|
2013-03-26 11:43:28 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="Graphics library that outputs text instead of pixels"
|
|
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
|
|
makedepends="ncurses-devel"
|
|
|
|
homepage="http://caca.zoy.org/wiki/libcaca"
|
2013-03-26 12:28:59 +00:00
|
|
|
license="WTFPL"
|
2013-03-26 11:43:28 +00:00
|
|
|
distfiles="http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz"
|
|
|
|
checksum=77ea06633f4a6022dccd4f76c1823e167a40cb05308fc1c7ea0fa1f80f6c33a1
|
2013-03-26 12:28:59 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-26 12:28:59 +00:00
|
|
|
hostmakedepends="libtool automake pkg-config"
|
|
|
|
pre_configure() {
|
2013-03-26 13:18:06 +00:00
|
|
|
sed -i -e s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS, configure.ac
|
2013-03-26 12:28:59 +00:00
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2013-07-28 08:46:33 +00:00
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.la
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libcaca-devel_package() {
|
|
|
|
depends="libcaca>=${version}"
|
2013-07-28 08:46:33 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/caca-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-28 08:46:33 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man1/caca-config.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcaca_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|