29 lines
618 B
Text
29 lines
618 B
Text
|
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"
|
||
|
license="GPL3+"
|
||
|
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
|
||
|
}
|