# Contributor: Bart Ribbers pkgname=os-prober pkgver=1.77 pkgrel=0 pkgdesc="Utility to detect other OSes on a set of drives" url="https://joeyh.name/code/os-prober/" arch="all" license="GPL-3.0-only" source="http://http.debian.net/debian/pool/main/o/os-prober/os-prober_$pkgver.tar.xz" options="!check" # No tests build() { make newns } package() { install -Dm755 os-prober linux-boot-prober -t "$pkgdir"/usr/bin install -Dm755 newns "$pkgdir"/usr/lib/os-prober/newns install -Dm755 common.sh "$pkgdir"/usr/share/os-prober/common.sh for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do install -dm755 "$pkgdir"/usr/lib/"$dir" install -m755 -t "$pkgdir"/usr/lib/"$dir" "$dir"/common/* [[ -d "$dir"/x86 ]] && cp -r "$dir"/x86/* "$pkgdir"/usr/lib/"$dir" done install -Dm655 os-probes/mounted/powerpc/20macosx "$pkgdir"/usr/lib/os-probes/mounted/20macosx install -dm755 "$pkgdir"/var/lib/os-prober } sha512sums="4d9c22ccc4d950644a06a17ec4424aca5ff82aeb20052dc389dd451b6b9a1799c5a9438644a29093153730af42066abbbbb78f593f2564314c9adbd43f60e39b os-prober_1.77.tar.xz"