# Automatically generated aport, do not edit! # Generator: pmbootstrap aportgen musl-x86_64 # Stub for apkbuild-lint if [ -z "$(type -t arch_to_hostspec)" ]; then arch_to_hostspec() { :; } fi pkgname=musl-x86_64 pkgver=1.2.5 pkgrel=1 arch="aarch64" subpackages="musl-dev-x86_64:package_dev" _arch="x86_64" _mirror="http://dl-4.alpinelinux.org/alpine/" url="https://musl-libc.org" license="MIT" options="!check !strip" pkgdesc="the musl library (lib c) implementation for $_arch" _target="$(arch_to_hostspec $_arch)" source=" musl-$pkgver-r$pkgrel-$_arch-edge.apk::$_mirror/edge/main/$_arch/musl-$pkgver-r$pkgrel.apk musl-dev-$pkgver-r$pkgrel-$_arch-edge.apk::$_mirror/edge/main/$_arch/musl-dev-$pkgver-r$pkgrel.apk " package() { mkdir -p "$pkgdir/usr/$_target" cd "$pkgdir/usr/$_target" # Use 'busybox tar' to avoid 'tar: Child returned status 141' # on some machines (builds.sr.ht, gitlab-ci). See pmaports#26. busybox tar -xf $srcdir/musl-$pkgver-r$pkgrel-$_arch-edge.apk rm .PKGINFO .SIGN.* } package_dev() { mkdir -p "$subpkgdir/usr/$_target" cd "$subpkgdir/usr/$_target" # Use 'busybox tar' to avoid 'tar: Child returned status 141' # on some machines (builds.sr.ht, gitlab-ci). See pmaports#26. busybox tar -xf $srcdir/musl-dev-$pkgver-r$pkgrel-$_arch-edge.apk rm .PKGINFO .SIGN.* # symlink everything from /usr/$_target/usr/* # to /usr/$_target/* so the cross-compiler gcc does not fail # to build. for _dir in include lib; do mkdir -p "$subpkgdir/usr/$_target/$_dir" cd "$subpkgdir/usr/$_target/usr/$_dir" for i in *; do cd "$subpkgdir/usr/$_target/$_dir" ln -s /usr/$_target/usr/$_dir/$i $i done done } sha512sums=" 5506970c66b6da294d32961e94cadc6926a7405915a3d4dd519ed8c2aae829f2fbfaab2ccc8d0794f4aa102aa3e8cbd62099aa54668a11ac0c5072f59befece6 musl-1.2.5-r1-x86_64-edge.apk bd2602e59831ba860a548c8281bb62be3382b4035f18c9e36350be644db61a762a413e1d696697d402a57d4bc565faf86c2a212e27c9b9a890d765f794bbe829 musl-dev-1.2.5-r1-x86_64-edge.apk "