0554fdbccf
* Use MIT as license for device-* aports and symlink packages. That way we don't have the "FIXME" string in the license field, and the MIT is used by Alpine for internal packages, too. * linux-* aports: properly name the downloaded files: prefix with the package name, so it does not just have the git commit as name.
28 lines
616 B
Text
28 lines
616 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="MIT"
|
|
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
|
|
}
|