summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff389c1ae18aceac68b91a12c1d6000cbd36dfa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=mingw-w64-lld
pkgver=1
pkgrel=1
arch=('any')
pkgdesc="MinGW wrapper for -fuse-ld=lld (mingw-w64)"
depends=('lld' 'mingw-w64-binutils')
license=("GPL")
url="http://fedoraproject.org/wiki/MinGW"
source=("mingw-lld.sh")
sha256sums=('SKIP')

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

package() {
  for _arch in ${_architectures}; do
    install -d "${pkgdir}"/usr/${_arch}/bin
    install -m 755 mingw-lld.sh "${pkgdir}"/usr/${_arch}/bin/lld
    pushd "${pkgdir}"/usr/${_arch}/bin
    ln -s lld ld.lld
    popd
  done
}