pkgname: os-prober pkgver: '1.85' pkgrel: '1' pkgdesc: Can probe disks on the system for other operating systems, and add them to the boot loader url: 'https://joeyh.name/code/os-prober/' arch: x86_64 depends: [] makedepends: - bash source: - 'https://deb.debian.org/debian/pool/main/o/os-prober/os-prober_${pkgver}.tar.xz' sha256sums: - f06094db841a214f975e79d66e2a79ea8c2b39b0f762e9d384b2feffd4ae7447 build: "cd ${pkgname}-${pkgver}\n\n# adjust lib dir to allow detection of 64-bit distros\nsed -i -e \"s:/lib/ld\\*\\.so\\\ *:/lib*/ld*.so*:g\" os-probes/mounted/common/90linux-distro\n\nrm -f Makefile\nmake newns\n\ninstall -Dm755 linux-boot-prober\ \ ${PKGDIR}/usr/bin/linux-boot-prober\ninstall -Dm755 os-prober ${PKGDIR}/usr/bin/os-prober\ninstall -Dm755 newns ${PKGDIR}/usr/lib/os-prober/newns\n\ install -Dm755 common.sh ${PKGDIR}/usr/share/os-prober/common.sh \n\nfor dir in os-probes os-probes/mounted os-probes/init\ \ linux-boot-probes linux-boot-probes/mounted; do\n install -dm755 ${PKGDIR}/usr/lib/$dir\n install -m755 -t ${PKGDIR}/usr/lib/$dir\ \ $dir/common/*\n [[ -d \"$dir\"/x86 ]] && cp -r \"$dir\"/x86/* ${PKGDIR}/usr/lib/$dir\ndone\n\ninstall -Dm755 os-probes/mounted/powerpc/20macosx\ \ ${PKGDIR}/usr/lib/os-probes/mounted/20macosx\n\ninstall -dm755 ${PKGDIR}/var/lib/os-prober\n" package: | true