void-packages/srcpkgs/ipmiutil/template

40 lines
1.3 KiB
Bash

# Template file for 'ipmiutil'
pkgname=ipmiutil
version=3.0.0
revision=6
only_for_archs="i686 i686-musl x86_64 x86_64-musl ppc64le ppc64le-musl ppc64-musl"
build_style=gnu-configure
makedepends="libressl-devel"
short_desc="Series of utilities that perform common IPMI management functions"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
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"
distfiles="https://sources.voidlinux.org/ipmiutil-${version}/ipmiutil-${version}.tar.gz"
checksum=7d57c1fd0d15518dcb13fa94842761d3309c09dec2679ccc382e600377352865
disable_parallel_build=yes
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
}
}