2017-05-26 20:26:25 +00:00
|
|
|
pkgname=gcc-cross-wrappers
|
|
|
|
pkgver=1
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="GCC wrappers pointing to cross-compilers (for distcc + ccache)"
|
|
|
|
url="https://github.com/postmarketOS"
|
|
|
|
arch="noarch"
|
2017-05-31 17:10:29 +00:00
|
|
|
license="MIT"
|
2017-05-26 20:26:25 +00:00
|
|
|
depends=""
|
|
|
|
makedepends=""
|
|
|
|
source=""
|
|
|
|
options="!check"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
local _archs="armhf aarch64"
|
|
|
|
local _bins="c++ cc cpp g++ gcc"
|
|
|
|
for _arch in $_archs; do
|
|
|
|
_bindir="$pkgdir/usr/lib/gcc-cross-wrappers/$_arch/bin"
|
|
|
|
_hostspec="$(arch_to_hostspec $_arch)"
|
|
|
|
mkdir -p "$_bindir"
|
|
|
|
for _bin in $_bins; do
|
|
|
|
{
|
|
|
|
echo "#!/bin/sh"
|
|
|
|
echo "${_hostspec}-${_bin} \"\$@\""
|
|
|
|
} > $_bindir/$_bin
|
|
|
|
chmod +x $_bindir/$_bin
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|