pmaports/cross/musl-aarch64/APKBUILD
Oliver Smith bf4b8a9051
cross/musl-*: update to 1.1.23-r0
Latest version from Alpine. I've checked that we can still compile
packages for armhf after this update, in other words that we don't get
a regression related to the triplet change like in #295.
2019-07-18 21:59:24 +02:00

54 lines
1.9 KiB
Text

# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen musl-aarch64
pkgname="musl-aarch64"
pkgver="1.1.23"
pkgrel=0
arch="armhf armv7 x86_64 x86"
subpackages="musl-dev-aarch64:package_dev"
_arch="aarch64"
_mirror="http://dl-cdn.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.apk::$_mirror/edge/main/$_arch/musl-$pkgver-r$pkgrel.apk
musl-dev-$pkgver-r$pkgrel-$_arch.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.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.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="89d5e3e90650be124232b19480381acbe68395c8915d38c20f274314faf00e96eb8d0f8ed092e753567da62f34f35dcb55015d934cd1a338726f10f24be61e76 musl-1.1.23-r0-aarch64.apk
075f24904548531918d8db30738109bc4e0dd0f050b0387aa2d099caf6801b2348be3f707b595ab6fb846bb9e644d67d2597df9ac9b31ab24c11651705e7eac1 musl-dev-1.1.23-r0-aarch64.apk"