void-packages/srcpkgs/ipmiutil/template
2017-04-11 18:54:28 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'ipmiutil'
pkgname=ipmiutil
version=3.0.0
revision=3
build_style=gnu-configure
makedepends="libressl-devel"
short_desc="Series of utilities that perform common IPMI management functions"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="BSD-2.0"
#changelog="http://ipmiutil.sourceforge.net/docs/ChangeLog"
homepage="http://ipmiutil.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=7d57c1fd0d15518dcb13fa94842761d3309c09dec2679ccc382e600377352865
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
post_install() {
vlicense COPYING
# Cleaner than patching lib/Makefile
# Also using sed to blanket replace doesn't work.
mv "${DESTDIR}/usr/sbin/"* "${DESTDIR}/usr/bin/"
[ -d "${DESTDIR}/usr/lib64" ] && mv "${DESTDIR}/usr/lib64/"* "${DESTDIR}/usr/lib/"
rm "${DESTDIR}/usr/share/ipmiutil/"*.service
}
ipmiutil-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.a
vmove usr/share/ipmiutil/Makefile
vmove usr/share/ipmiutil/*.c
vmove usr/share/ipmiutil/*.h
}
}