pmaports/cross/musl-armhf/APKBUILD
2017-08-31 01:14:08 +02:00

50 lines
1.6 KiB
Text

# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen musl-armhf
pkgname=musl-armhf
pkgver=1.1.16
pkgrel=19
subpackages="musl-dev-armhf:package_dev"
_arch="armhf"
_mirror="https://nl.alpinelinux.org/alpine/"
url="https://musl-libc.org"
license="MIT"
arch="all"
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
}
sha512sums="6c1bb22ca2d84fc5f1843c8d044decdbbfe7bb1fa4d79a0cfd597d98ab45c8be082073cf219631de3ef9a30dcfcbbd0207d7901982adf56f9104dbed63195c7d musl-1.1.16-r19-armhf.apk
9e43c6efc774698ee453e96361219432a44d4c31d328130756418ae51b382dc4c2252e3b285edf75ef8a4322da83cc158582965165c912d8ccab5d1ca6ad8e4a musl-dev-1.1.16-r19-armhf.apk"