pmaports/cross/musl-armhf/APKBUILD

51 lines
1.6 KiB
Text
Raw Normal View History

# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen musl-armhf
pkgname="musl-armhf"
pkgver="1.1.18"
2018-02-21 18:46:06 +00:00
pkgrel=8
arch="aarch64 x86_64 x86"
subpackages="musl-dev-armhf:package_dev"
_arch="armhf"
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="de63ff7a753bfc8770cb85cb1ef378805c6b6903860a62b7082ceec20f40bfdd9f8b3485682fe74fea317dc01be35c03778487792abe0543bc671120404cfd54 musl-1.1.18-r8-armhf.apk
17ed5934b224017754fff7beb8d528e4230d1a17006c5e37a54891a7002402a5cd0971c9587ebd5ccdaa39c9f2500ebf04f5af2b877a7e8999ef43351b375b34 musl-dev-1.1.18-r8-armhf.apk"