From 2f3f0bf333b41306bc9c87dd81b5eaa07e26f996 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 1 Jun 2020 21:49:15 +0200 Subject: [PATCH] temp/os-prober: new aport (MR 1296) Taken from PureTryOut's testing/calamares repository, thanks! --- temp/os-prober/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 temp/os-prober/APKBUILD diff --git a/temp/os-prober/APKBUILD b/temp/os-prober/APKBUILD new file mode 100644 index 000000000..242a6e630 --- /dev/null +++ b/temp/os-prober/APKBUILD @@ -0,0 +1,31 @@ +# 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"