libsmbios: only build it on x86; modernize template.
This commit is contained in:
parent
f619c55907
commit
d3c3959aad
1 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libsmbios'
|
# Template file for 'libsmbios'
|
||||||
pkgname=libsmbios
|
pkgname=libsmbios
|
||||||
version=2.2.28
|
version=2.2.28
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-python"
|
configure_args="--disable-static --disable-python"
|
||||||
hostmakedepends="pkg-config perl"
|
hostmakedepends="pkg-config perl"
|
||||||
|
@ -16,11 +16,13 @@ long_desc="
|
||||||
Libsmbios is a library and utilities that can be used by client programs
|
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."
|
to get information from standard BIOS tables, such as the SMBIOS table."
|
||||||
|
|
||||||
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf ${DESTDIR}/etc/yum ${DESTDIR}/usr/lib/yum-plugins
|
rm -rf ${DESTDIR}/etc/yum ${DESTDIR}/usr/lib/yum-plugins
|
||||||
rm -rf ${DESTDIR}/libsmbios_c ${DESTDIR}/etc/libsmbios
|
rm -rf ${DESTDIR}/libsmbios_c ${DESTDIR}/etc/libsmbios
|
||||||
rm -rf ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/smbios-utils
|
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 ${DESTDIR}/usr/include
|
||||||
cp -r ${wrksrc}/src/include/smbios_c ${DESTDIR}/usr/include
|
cp -r ${wrksrc}/src/include/smbios_c ${DESTDIR}/usr/include
|
||||||
rm -f ${DESTDIR}/usr/include/smbios/version.h.in
|
rm -f ${DESTDIR}/usr/include/smbios/version.h.in
|
||||||
|
@ -28,15 +30,16 @@ post_install() {
|
||||||
|
|
||||||
libsmbios-devel_package() {
|
libsmbios-devel_package() {
|
||||||
depends="libsmbios>=${version}"
|
depends="libsmbios>=${version}"
|
||||||
short_desc+=" -- development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libsmbios-utils_package() {
|
libsmbios-utils_package() {
|
||||||
short_desc+=" -- utilities"
|
short_desc+=" - utilities"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/sbin
|
vmove usr/sbin
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue