void-packages/srcpkgs/os-prober/template
Juan RP 23dd7d008e Update build_style for all templates.
- There's no need to set build_style for custom-install (default).
- gnu_{configure,makefile} renamed to gnu-{configure,makefile}.
2011-10-24 14:14:47 +02:00

52 lines
1.4 KiB
Text

# Template file for 'os-prober'
pkgname=os-prober
version=1.49
wrksrc=${pkgname}
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.gz"
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"
checksum=828118ee0792263179572f5a7669f20c787dd61e7bfb2954a34ea0d62f94fc14
long_desc="
This package detects other OSes available on a system and outputs the
results in a generic machine-readable format."
keep_empty_dirs=yes
Add_dependency run glibc
do_build()
{
make ${makejobs}
}
do_install()
{
local ARCH
case "${xbps_machine}" in
i[56]86|x86_64) ARCH=x86;;
esac
vmkdir usr/lib/os-probes/init
vmkdir usr/lib/os-probes/mounted
vmkdir usr/share/os-prober
vmkdir var/lib/os-prober
vmkdir usr/lib/linux-boot-probes/mounted
vinstall os-prober 755 usr/bin
vinstall linux-boot-prober 755 usr/bin
vinstall newns 755 usr/lib/os-prober
vinstall common.sh 644 usr/share/os-prober
vcopy "linux-boot-probes/common/*" usr/lib/linux-boot-probes
vcopy "linux-boot-probes/mounted/common/*" \
usr/lib/linux-boot-probes/mounted
vcopy "linux-boot-probes/mounted/${ARCH}/*" \
usr/lib/linux-boot-probes/mounted
vcopy "os-probes/common/*" usr/lib/os-probes
vcopy "os-probes/init/common/*" usr/lib/os-probes/init
vcopy "os-probes/mounted/common/*" usr/lib/os-probes/mounted
vcopy "os-probes/mounted/${ARCH}/*" usr/lib/os-probes/mounted
}