pmaports/cross/musl-aarch64/APKBUILD

51 lines
1.7 KiB
Text
Raw Normal View History

# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen musl-aarch64
pkgname="musl-aarch64"
pkgver="1.1.18"
2018-02-21 18:46:06 +00:00
pkgrel=8
arch="armhf x86_64 x86"
subpackages="musl-dev-aarch64:package_dev"
_arch="aarch64"
2018-02-03 10:58:04 +00:00
_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"
tar -xf $srcdir/musl-$pkgver-r$pkgrel-$_arch.apk
rm .PKGINFO .SIGN.*
}
package_dev() {
mkdir -p "$subpkgdir/usr/$_target"
cd "$subpkgdir/usr/$_target"
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
}
2018-02-21 18:46:06 +00:00
sha512sums="a955fef9ee51abb024f18d49ff79b69bb7f797d8cd4cd1a1c260f0b809a7d987b46b05af4f1f9df8797ed530d770b16b95c2c63f4d3eb69d044e88ab303aabff musl-1.1.18-r8-aarch64.apk
22a927a4720d279a2b290e57671bd5da6008eaf88ebe1c0d30142c5c217ca17cc5d4667fd92176918d89c121fa5685f3aeed4b0bafb83d2386ce00c87aec8bb1 musl-dev-1.1.18-r8-aarch64.apk"