libsmbios: only build it on x86; modernize template.

This commit is contained in:
Juan RP 2013-08-12 16:25:11 +02:00
parent f619c55907
commit d3c3959aad

View file

@ -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
}