2015-08-22 01:19:28 +00:00
|
|
|
# Template file for 'libtermkey'
|
|
|
|
pkgname=libtermkey
|
2015-10-06 22:49:23 +00:00
|
|
|
version=0.18
|
2015-12-07 02:58:07 +00:00
|
|
|
revision=2
|
2015-09-27 19:30:44 +00:00
|
|
|
build_style=gnu-makefile
|
2015-08-22 01:19:28 +00:00
|
|
|
hostmakedepends="libtool pkg-config perl"
|
|
|
|
makedepends="unibilium-devel"
|
|
|
|
short_desc="Library for processing keyboard entry from terminal-based programs"
|
|
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://www.leonerd.org.uk/code/libtermkey"
|
|
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
|
2015-10-06 22:49:23 +00:00
|
|
|
checksum=239746de41c845af52bb3c14055558f743292dd6c24ac26c2d6567a5a6093926
|
2015-08-22 01:19:28 +00:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
cp /usr/bin/libtool .
|
|
|
|
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
|
|
|
|
sed -e 's,libtool,./libtool,g' -i Makefile
|
|
|
|
fi
|
|
|
|
make termkey.h libtermkey.la
|
|
|
|
}
|
|
|
|
|
2015-09-27 19:30:44 +00:00
|
|
|
post_install() {
|
2015-08-22 01:19:28 +00:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
libtermkey-devel_package() {
|
|
|
|
short_desc=" - development files"
|
2015-12-07 02:58:07 +00:00
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
2015-08-22 01:19:28 +00:00
|
|
|
pkg_install() {
|
2015-09-27 19:30:44 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man3
|
2015-08-22 01:19:28 +00:00
|
|
|
}
|
|
|
|
}
|