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.
27 lines
672 B
Text
27 lines
672 B
Text
# Maintainer: Oliver Smith <ollieparanoid@bitmessage.ch>
|
|
# NOTE: This could probably be upstreamed to the official ccache aport.
|
|
|
|
pkgname=ccache-cross-symlinks
|
|
pkgver=1
|
|
pkgrel=2
|
|
pkgdesc="Enable ccache for cross-compilers with symlinks"
|
|
url="https://ccache.samba.org/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="ccache"
|
|
makedepends=""
|
|
source=""
|
|
options="!check"
|
|
|
|
package() {
|
|
local _archs="armhf aarch64"
|
|
local _bins="c++ cc cpp g++ gcc"
|
|
mkdir -p "$pkgdir/usr/lib/ccache/bin"
|
|
cd "$pkgdir/usr/lib/ccache/bin"
|
|
for _arch in $_archs; do
|
|
_hostspec="$(arch_to_hostspec $_arch)"
|
|
for _bin in $_bins; do
|
|
ln -v -s /usr/bin/ccache ${_hostspec}-${_bin} || return 1
|
|
done
|
|
done
|
|
}
|