summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07403862c63476460880750c778fe71c09b35f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=msbuild-bin
pkgver=0.03
pkgrel=2
pkgdesc="Microsoft Build Engine"
arch=(i686 x86_64)
license=('MIT')
url="https://github.com/dotnet/corefx/blob/8b6efd4a91288d94b13f9757c6f1a3b356d39dd8/build.sh#L102"
depends=('mono')
makedepends=('nuget')
provides=('msbuild')
options=('!strip')
source=("https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v${pkgver}/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip")

build() {
  cd msbuild
}

package() {
echo
  
  install -d "$pkgdir/usr/share"
  cp -ra msbuild "$pkgdir/usr/share/"

  install -d "$pkgdir/usr/bin"
  echo '#!/bin/sh
mono /usr/share/msbuild/MSBuild.exe "$@"
' > "$pkgdir/usr/bin/MSBuild.exe"
chmod +x "$pkgdir/usr/bin/MSBuild.exe"
ln -s MSBuild.exe "$pkgdir/usr/bin/msbuild.exe"
ln -s MSBuild.exe "$pkgdir/usr/bin/msbuild"
}

md5sums=('14345c2f2dc53aa902a89419e234d2d4')