53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
pkgname=qemu-user-static-repack
|
|
pkgver=2.8
|
|
_debver=${pkgver}+dfsg-6+deb9u2_amd64
|
|
pkgrel=9
|
|
pkgdesc="QEMU user mode emulation binaries (static version)"
|
|
arch=x86_64
|
|
url="https://wiki.debian.org/DebianKernel/ARMMP"
|
|
license="GPL2"
|
|
source="https://deb.debian.org/debian/pool/main/q/qemu/qemu-user-static_${_debver}.deb"
|
|
makedepends="tar xz"
|
|
subpackages="$pkgname-doc $pkgname-binfmt:binfmt:noarch"
|
|
options="!check"
|
|
|
|
unpack() {
|
|
cd "$srcdir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.deb) ar x ${i##*/} ;;
|
|
esac
|
|
done
|
|
|
|
# postinst in this archive contains the binfmt information
|
|
tar -xf "$srcdir/control.tar.gz"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
tar -xJf "$srcdir"/data.tar.xz -C $pkgdir
|
|
return 0
|
|
}
|
|
|
|
_binfmtout="$srcdir/qemu-user-binfmt.txt"
|
|
build() {
|
|
cd "$srcdir"
|
|
for line in \
|
|
"# Non-standard file format with grepped binfmt information" \
|
|
"# from Debians postinst script. Used in pmbootstrap."
|
|
do
|
|
echo "$line" >> $_binfmtout
|
|
done
|
|
|
|
for suffix in mask magic; do
|
|
grep "_${suffix}=" postinst >> $_binfmtout
|
|
done
|
|
}
|
|
|
|
binfmt() {
|
|
mkdir -p "$pkgdir-binfmt"
|
|
install -Dm644 $_binfmtout \
|
|
"$pkgdir-binfmt/usr/share/qemu-user-binfmt.txt"
|
|
}
|
|
|
|
sha512sums="530b7e921346702616ac643a2034ea996d04baf5fb21b9de3b2d69116368cb26b3e613a19569dd7a7eaf2aa5fb113006928cb7672298dc7bfa1b4a80d2385967 qemu-user-static_2.8+dfsg-6+deb9u2_amd64.deb"
|