# Template file for 'keyutils' pkgname=keyutils version=1.5.5 revision=3 conf_files="/etc/request-key.conf" short_desc="Linux Key Management Utilities" maintainer="Juan RP " homepage="http://www.kernel.org" license="GPL-2, LGPL-2.1" distfiles="http://people.redhat.com/~dhowells/$pkgname/$pkgname-$version.tar.bz2" checksum=8fab781fb2d1450b2112a7fbfe6629522ae5a6b901f875a74a201012025a3fc5 do_build() { sed -e "s|/lib64|/lib|g;s|-m64|${CFLAGS}|g;s|-m32||g" -i Makefile make ${makejobs} } do_install() { make DESTDIR=${DESTDIR} install vmkdir usr/lib vmkdir usr/bin vmkdir usr/sbin mv ${DESTDIR}/bin/* ${DESTDIR}/usr/bin mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib cd ${DESTDIR}/usr/lib && ln -sf libkeyutils.so.1 libkeyutils.so } libkeyutils_package() { short_desc+=" - runtime library" pkg_install() { vmove "usr/lib/*.so.*" } } keyutils-devel_package() { depends="libkeyutils>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove "usr/lib/*.a" vmove "usr/lib/*.so" vmove usr/share/man/man3 } }