void-packages/srcpkgs/os-prober/template
2017-05-24 00:46:10 +02:00

28 lines
984 B
Bash

# Template file for 'os-prober'
pkgname=os-prober
version=1.75
revision=3
make_dirs="/var/lib/os-prober 0755 root root"
short_desc="Utility to detect other OSes on a set of drives"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://packages.debian.org/sid/os-prober"
license="GPL-2"
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.xz"
checksum=f4ef620455c5ffc3545daf4f32861640a48b0b3b6edda72491eecc1818653446
do_build() {
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
vbin linux-boot-prober
vbin os-prober
vinstall newns 755 usr/lib/os-prober
vinstall common.sh 755 usr/share/os-prober
for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do
vmkdir usr/lib/${dir}
install -m755 -t ${DESTDIR}/usr/lib/${dir} ${dir}/common/*
[ -d ${dir}/x86 ] && cp -r ${dir}/x86/* ${DESTDIR}/usr/lib/${dir}
done
vinstall os-probes/mounted/powerpc/20macosx 755 usr/lib/os-probes/mounted
}