vp-build/srcpkgs/os-prober/template
2014-10-05 09:32:42 +02:00

31 lines
994 B
Plaintext

# Template file for 'os-prober'
pkgname=os-prober
version=1.64
revision=1
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@gmail.com>"
homepage="http://packages.debian.org/sid/os-prober"
license="GPL-2"
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.xz"
checksum=b0c14b530dd83856d17736e3758700f7e89fbf0ff6f6c20104b3b4ae1d8579df
wrksrc=$pkgname
do_build() {
make ${makejobs}
}
do_install() {
vinstall linux-boot-prober 755 usr/bin
vinstall os-prober 755 usr/bin
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
}