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
2017-11-22 22:07:50 +00:00
pkgrel=2
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
}
2017-11-22 22:07:50 +00:00
sha512sums="fc565a3561020f2cc701fec1b4c4d0d7e4fbe0350ec3e533a75c2c7ee42b5e3b486f31b713e2dfe1518ca6ab4da98fa1ec57a89d597bf6849b4d76073f7dcc9e musl-1.1.18-r2-armhf.apk
537d6af033cd1896d6b40ee80c7458816a05cf6780be9d8cf602a28803fb162348f0d7b8c255aec050a4457ebdf6b94c19c78278df0da1414cfa68ff3e3ad648 musl-dev-1.1.18-r2-armhf.apk"