parent
eec27ea820
commit
9a5ba145ac
2 changed files with 27 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'libsmbios'
|
||||
pkgname=libsmbios
|
||||
version=2.4.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--sbindir=/usr/bin --disable-static --disable-python"
|
||||
configure_args="--sbindir=/usr/bin --disable-static"
|
||||
hostmakedepends="automake doxygen gettext-devel help2man libtool pkg-config"
|
||||
makedepends="libxml2-devel"
|
||||
makedepends="libxml2-devel python3-devel"
|
||||
checkdepends="python3"
|
||||
short_desc="Library for SMBIOS access"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
|
@ -13,6 +13,9 @@ license="GPL-2.0-or-later, OLS-2.1"
|
|||
homepage="https://github.com/dell/libsmbios"
|
||||
distfiles="https://github.com/dell/libsmbios/archive/v${version}.tar.gz"
|
||||
checksum=ebfe18415e24bbec06d0a9ea1066c8dcd82982555373712713d7e194138650de
|
||||
# explicitly list the subpackages to make sure they are installed in the
|
||||
# right order:
|
||||
subpackages="libsmbios-devel python3-libsmbios libsmbios-utils"
|
||||
|
||||
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||
|
||||
|
@ -27,8 +30,6 @@ pre_configure() {
|
|||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/etc/yum ${DESTDIR}/usr/lib/yum-plugins
|
||||
rm -rf ${DESTDIR}/libsmbios_c ${DESTDIR}/etc/libsmbios
|
||||
rm -rf ${DESTDIR}/usr/share/smbios-utils
|
||||
vmkdir usr/include
|
||||
cp -r ${wrksrc}/out/public-include/* ${DESTDIR}/usr/include
|
||||
cp -r ${wrksrc}/src/include/smbios_c ${DESTDIR}/usr/include
|
||||
|
@ -44,6 +45,26 @@ libsmbios-devel_package() {
|
|||
}
|
||||
}
|
||||
|
||||
python3-libsmbios_package() {
|
||||
depends="python3 ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - python bindings"
|
||||
pycompile_module="libsmbios_c"
|
||||
pkg_install() {
|
||||
vmove ${py3_sitelib}
|
||||
vmove usr/share/smbios-utils/cli.py
|
||||
|
||||
vmove usr/bin/smbios-battery-ctl
|
||||
vmove usr/bin/smbios-keyboard-ctl
|
||||
vmove usr/bin/smbios-lcd-brightness
|
||||
vmove usr/bin/smbios-passwd
|
||||
vmove usr/bin/smbios-sys-info
|
||||
vmove usr/bin/smbios-thermal-ctl
|
||||
vmove usr/bin/smbios-token-ctl
|
||||
vmove usr/bin/smbios-wakeup-ctl
|
||||
vmove usr/bin/smbios-wireless-ctl
|
||||
}
|
||||
}
|
||||
|
||||
libsmbios-utils_package() {
|
||||
short_desc+=" - utilities"
|
||||
pkg_install() {
|
||||
|
|
1
srcpkgs/python3-libsmbios
Symbolic link
1
srcpkgs/python3-libsmbios
Symbolic link
|
@ -0,0 +1 @@
|
|||
libsmbios
|
Loading…
Reference in a new issue