diff --git a/common/shlibs b/common/shlibs index c845066b68a..a4282fc81d0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2137,3 +2137,4 @@ libzita-resampler.so.1 zita-resampler-1.3.0_1 libmlt.so.6 mlt-0.9.6_1 libmlt++.so.3 mlt-0.9.6_1 libunibilium.so.0 unibilium-1.1.6_1 +libtermkey.so.1 libtermkey-0.17_1 diff --git a/srcpkgs/libtermkey-devel b/srcpkgs/libtermkey-devel new file mode 120000 index 00000000000..347065a9f19 --- /dev/null +++ b/srcpkgs/libtermkey-devel @@ -0,0 +1 @@ +libtermkey \ No newline at end of file diff --git a/srcpkgs/libtermkey/template b/srcpkgs/libtermkey/template new file mode 100644 index 00000000000..26550b06e47 --- /dev/null +++ b/srcpkgs/libtermkey/template @@ -0,0 +1,37 @@ +# Template file for 'libtermkey' +pkgname=libtermkey +version=0.17 +revision=1 +hostmakedepends="libtool pkg-config perl" +makedepends="unibilium-devel" +short_desc="Library for processing keyboard entry from terminal-based programs" +maintainer="Steve Prybylski " +license="MIT" +homepage="http://www.leonerd.org.uk/code/libtermkey" +distfiles="${homepage}/${pkgname}-${version}.tar.gz" +checksum="68949364ed5eaad857b3dea10071cde74b00b9f236dfbb702169f246c3cef389" + +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 +} + +do_install() { + make PREFIX=/usr DESTDIR=${DESTDIR} install + vlicense LICENSE +} + +libtermkey-devel_package() { + short_desc=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "usr/include" + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove "usr/lib/pkgconfig" + } +}