summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6adaf1daf79882eeec8eac4f5a4022383984512 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: craw <crawaur@gmx.de>
#             Zulu <aur@netz-mafia.de>

pkgname=mono-visualstudio
_pkgname=mono
pkgver=5.18.1.3
pkgrel=1
pkgdesc="The VS release channel contains packages which are shipped as part of a Visual Studio for Mac release. They are the most stable but also the least frequently updated packages."
arch=(i686 x86_64)
license=('GPL' 'LGPL2.1' 'MPL')
url="http://www.mono-project.com/"
depends=('zlib' 'libgdiplus' 'sh' 'python' 'ca-certificates')
makedepends=('cmake' 'mono')
provides=('mono=$(pkgver)' 'monodoc')
conflicts=('mono' 'monodoc')
replaces=('mono')
install="${_pkgname}.install"
source=(https://download.mono-project.com/sources/mono/${_pkgname}-${pkgver}.tar.bz2
        mono.binfmt.d)
sha256sums=('b9838f38872cd4ae0a4c45fb8a94fc2b6c9f85b3a7507f7187bcbd49d26f3515'
            '9a657fc153ef4ce23bf5fc369a26bf4a124e9304bde3744d04c583c54ca47425')

build() {
  cd "${srcdir}"/${_pkgname}-${pkgver}

  # build mono
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --bindir=/usr/bin \
    --sbindir=/usr/bin \
    --with-mcs-docs=no
  make

  # build jay
  cd "${srcdir}"/${_pkgname}-${pkgver}/mcs/jay
  make
}

package() {
  cd "${srcdir}"/${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install

  # install jay
  pushd "${srcdir}"/${_pkgname}-${pkgver}/mcs/jay
  make DESTDIR="${pkgdir}" prefix=/usr INSTALL=../../install-sh install
  popd

  # install binfmt conf file and pathes
  install -D -m644 "${srcdir}"/mono.binfmt.d "${pkgdir}"/usr/lib/binfmt.d/mono.conf

  #fix .pc file to be able to request mono on what it depends, fixes #go-oo build
  sed -i -e "s:#Requires:Requires:" "${pkgdir}"/usr/lib/pkgconfig/mono.pc
  sed -i -e "s:/2.0/:/4.5/:g" "${pkgdir}"/usr/lib/pkgconfig/mono-nunit.pc
}