From d3c3959aad8b6307dfc119abe3024f3e91f7ba99 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 12 Aug 2013 16:25:11 +0200 Subject: [PATCH] libsmbios: only build it on x86; modernize template. --- srcpkgs/libsmbios/template | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/libsmbios/template b/srcpkgs/libsmbios/template index 5c85fcce74..08f3e22a30 100644 --- a/srcpkgs/libsmbios/template +++ b/srcpkgs/libsmbios/template @@ -1,7 +1,7 @@ # Template file for 'libsmbios' pkgname=libsmbios version=2.2.28 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static --disable-python" hostmakedepends="pkg-config perl" @@ -16,11 +16,13 @@ long_desc=" Libsmbios is a library and utilities that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table." +only_for_archs="i686 x86_64" + post_install() { rm -rf ${DESTDIR}/etc/yum ${DESTDIR}/usr/lib/yum-plugins rm -rf ${DESTDIR}/libsmbios_c ${DESTDIR}/etc/libsmbios rm -rf ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/smbios-utils - install -d ${DESTDIR}/usr/include + vmkdir usr/include cp -r ${wrksrc}/src/include/smbios ${DESTDIR}/usr/include cp -r ${wrksrc}/src/include/smbios_c ${DESTDIR}/usr/include rm -f ${DESTDIR}/usr/include/smbios/version.h.in @@ -28,15 +30,16 @@ post_install() { libsmbios-devel_package() { depends="libsmbios>=${version}" - short_desc+=" -- development files" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" } } libsmbios-utils_package() { - short_desc+=" -- utilities" + short_desc+=" - utilities" pkg_install() { vmove usr/sbin }