63 lines
2 KiB
Text
63 lines
2 KiB
Text
|
# Automatically generated aport, do not edit!
|
||
|
# Generator: pmbootstrap aportgen musl-x86
|
||
|
|
||
|
# Stub for apkbuild-lint
|
||
|
if [ -z "$(type -t arch_to_hostspec)" ]; then
|
||
|
arch_to_hostspec() { :; }
|
||
|
fi
|
||
|
|
||
|
pkgname=musl-x86
|
||
|
pkgver=1.2.4_git20230717
|
||
|
pkgrel=3
|
||
|
arch="x86_64"
|
||
|
subpackages="musl-dev-x86:package_dev"
|
||
|
|
||
|
_arch="x86"
|
||
|
_mirror="http://dl-4.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-edge.apk::$_mirror/edge/main/$_arch/musl-$pkgver-r$pkgrel.apk
|
||
|
musl-dev-$pkgver-r$pkgrel-$_arch-edge.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-edge.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-edge.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="
|
||
|
19a5b95a805f2df590c656828fcde6a9c9c4aefc5ea0e35a5f75767a5eb328636e86ffcfa59b8172e84f0cd214141284c7b051f15440bc9fd087c1b48cb4cd80 musl-1.2.4_git20230717-r3-x86-edge.apk
|
||
|
fb3c0011aca00c4528e383b0e0ba95fe01a84a7ef8e69ec808c42ecf0527b4bafa0d4762ce327c281d1ec2cb9b6350c96d7bd04ddee6849b2c6a1c596318ed5e musl-dev-1.2.4_git20230717-r3-x86-edge.apk
|
||
|
"
|