# This package exists because gcc is just in a mess when it comes to
# building cross-native. It is assumed by gcc that the directory
# structure inside the build sysroot matches the directory structure
# on the target system. This is not true in our case, where there is
# no /usr under the build sysroot, so that SYSROOT/usr/include does
# not exist. This package just adds the necessary symlink.
pkgname=(gcc-build-sysroot-symlink)
pkgver=1
pkgrel=1
arch=(any)
pkgdesc='A hack to permit gcc to build cross-natively with the correct include dirs'
url="https://mash.bootstrap.invalid/"
license=(MIT)
ncxfab_makedepends=(
    coreutils
)
options=(!strip !debug)
source=()

build() {
    :
}

package() {
  cd "$pkgdir"
  mkdir -p "$pkgdir"$MPKG_USRPATH
  cd "$pkgdir"$MPKG_USRPATH
  ln -s $MPKG_USRPATH usr
}
