void-packages/srcpkgs/libvpd/template

32 lines
885 B
Bash

# Template file for 'libvpd'
pkgname=libvpd
version=2.2.6
revision=1
archs="ppc64*"
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="sg3_utils-devel sqlite-devel zlib-devel"
short_desc="VPD Database access library"
maintainer="q66 <daniel@octaforge.org>"
license="LGPL-2.1-or-later"
homepage="https://sourceforge.net/projects/linux-diag"
distfiles="${SOURCEFORGE_SITE}/linux-diag/${pkgname}-${version}.tar.gz"
checksum=fe093777dc83409c9b6e41862deeb474a06dcd45a6f90ac70e113a2a21a4dc3c
pre_configure() {
# fix incorrect udev rule path, pass lint
sed -i 's,${sysconfdir}/udev,${libdir}/udev,g' Makefile.am
./bootstrap.sh
}
libvpd-devel_package() {
depends="${sourcepkg}>=${version}_${revision} sqlite-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}