initial import
This commit is contained in:
43
os-prober/PKGBUILD
Normal file
43
os-prober/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=os-prober
|
||||
pkgver=1.79
|
||||
pkgrel=1
|
||||
pkgdesc='Utility to detect other operating-systems on a set of drives'
|
||||
url='https://joeyh.name/code/os-prober/'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-2')
|
||||
depends=('sh')
|
||||
source=("https://deb.debian.org/debian/pool/main/o/${pkgname}/${pkgname}_${pkgver}.tar.xz")
|
||||
sha512sums=('89b827b9b90a1d3bc11e0090ec04d808502cc1883ab10997b6d9edbe6005dcf8a0acdd7d200102c9dccde56297bda6087d68fb6dec419f0920090c2655c9c7d8')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}
|
||||
# adjust lib dir to allow detection of 64-bit distros
|
||||
sed -i -e "s:/lib/ld\*\.so\*:/lib*/ld*.so*:g" os-probes/mounted/common/90linux-distro
|
||||
rm -f Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}
|
||||
make newns
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}
|
||||
|
||||
install -Dm 755 os-prober linux-boot-prober -t "${pkgdir}/usr/bin"
|
||||
install -Dm 755 newns -t "${pkgdir}/usr/lib/os-prober"
|
||||
install -Dm 755 common.sh -t "${pkgdir}/usr/share/os-prober"
|
||||
|
||||
for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do
|
||||
install -dm 755 "${pkgdir}/usr/lib/${dir}"
|
||||
install -m 755 -t "${pkgdir}/usr/lib/${dir}" "${dir}"/common/*
|
||||
[[ -d "${dir}"/x86 ]] && cp -r "${dir}"/x86/* "${pkgdir}/usr/lib/${dir}"
|
||||
done
|
||||
|
||||
install -Dm 755 os-probes/mounted/powerpc/20macosx "${pkgdir}"/usr/lib/os-probes/mounted/20macosx
|
||||
install -dm 755 "${pkgdir}"/var/lib/os-prober
|
||||
|
||||
install -Dm644 debian/copyright -t "${pkgdir}"/usr/share/licenses/$pkgname
|
||||
}
|
||||
Reference in New Issue
Block a user