2018-01-19 21:30:16 +00:00
|
|
|
pkgname="qemu-user-static-repack"
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgver=2.8
|
2018-01-19 21:30:16 +00:00
|
|
|
pkgrel=11
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="QEMU user mode emulation binaries (static version)"
|
2018-01-19 21:30:16 +00:00
|
|
|
arch="all"
|
2017-05-26 20:26:25 +00:00
|
|
|
url="https://wiki.debian.org/DebianKernel/ARMMP"
|
|
|
|
license="GPL2"
|
2018-01-19 21:30:16 +00:00
|
|
|
_debver="${pkgver}+dfsg-6+deb9u3"
|
|
|
|
_deburl="https://deb.debian.org/debian/pool/main/q/qemu/qemu-user-static_${_debver}"
|
|
|
|
source="
|
|
|
|
qemu-user-static_${_debver}_x86.deb::${_deburl}_i386.deb
|
|
|
|
qemu-user-static_${_debver}_x86_64.deb::${_deburl}_amd64.deb
|
|
|
|
qemu-user-static_${_debver}_armhf.deb::${_deburl}_armhf.deb
|
|
|
|
qemu-user-static_${_debver}_aarch64.deb::${_deburl}_arm64.deb
|
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
makedepends="tar xz"
|
|
|
|
subpackages="$pkgname-doc $pkgname-binfmt:binfmt:noarch"
|
|
|
|
options="!check"
|
|
|
|
|
|
|
|
unpack() {
|
|
|
|
cd "$srcdir"
|
|
|
|
for i in $source; do
|
2018-01-19 21:30:16 +00:00
|
|
|
case ${i%::*} in
|
|
|
|
*${CARCH}.deb) ar x ${i%::*} ;;
|
2017-05-26 20:26:25 +00:00
|
|
|
esac
|
|
|
|
done
|
2017-05-29 20:32:13 +00:00
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
# postinst in this archive contains the binfmt information
|
2017-10-04 15:05:00 +00:00
|
|
|
tar -xf "$srcdir/control.tar.gz"
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
2017-10-04 15:05:00 +00:00
|
|
|
tar -xJf "$srcdir"/data.tar.xz -C $pkgdir
|
2017-05-26 20:26:25 +00:00
|
|
|
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
|
2017-10-04 15:05:00 +00:00
|
|
|
echo "$line" >> $_binfmtout
|
2017-05-26 20:26:25 +00:00
|
|
|
done
|
2017-05-29 20:32:13 +00:00
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
for suffix in mask magic; do
|
2017-10-04 15:05:00 +00:00
|
|
|
grep "_${suffix}=" postinst >> $_binfmtout
|
2017-05-26 20:26:25 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2017-05-29 20:32:13 +00:00
|
|
|
binfmt() {
|
2017-05-26 20:26:25 +00:00
|
|
|
mkdir -p "$pkgdir-binfmt"
|
|
|
|
install -Dm644 $_binfmtout \
|
2017-10-04 15:05:00 +00:00
|
|
|
"$pkgdir-binfmt/usr/share/qemu-user-binfmt.txt"
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
2018-01-19 21:30:16 +00:00
|
|
|
sha512sums="466544a6e2b2ee4b0a25d290d9a95dd9082131118ee2818436e0a1ab4835ed5eaed0d4479dd392c2285dcb70e572a3323da970ff625706b9d72164992e8dd4a6 qemu-user-static_2.8+dfsg-6+deb9u3_x86.deb
|
|
|
|
96ffac25444f7fd3275dfb5c00b73a033b4668572aac3448e77e8d87ca27698f9b32fc7d57f1b311ee8b0662a7d7cb39c716bbdb433e0bd798e7b6d2d8380c2a qemu-user-static_2.8+dfsg-6+deb9u3_x86_64.deb
|
|
|
|
d7aac0a40e3795a3cc83131f95d5e5c8e6164d29fc58a412ee5b5306017f9d47b3c659504bea93b87dbbe86ee07b60284c38e58476a6d7142f3cfde392f75502 qemu-user-static_2.8+dfsg-6+deb9u3_armhf.deb
|
|
|
|
cb46e7ce7091b8d032a1a2fc7238ecce0238494517a23d64ad92dc50dc5ba5acdfb9e0d907db3c46d4c23d6c63612aa07d610ed3e11c4664c61d6bafe5b117ed qemu-user-static_2.8+dfsg-6+deb9u3_aarch64.deb"
|