db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / dbus-sharp / trunk / PKGBUILD
blobce82033e86f14b171644f44f6992954c01982579
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
2 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
4 pkgname=dbus-sharp
5 pkgver=0.8.1
6 pkgrel=3
7 pkgdesc="C# implementation of D-Bus"
8 arch=('any')
9 url="https://github.com/mono/dbus-sharp/"
10 license=('custom')
11 depends=('mono')
12 options=(!makeflags)
13 source=(https://github.com/mono/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
14         https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip)
15 sha256sums=('0866c001f2d6e01a6f1b4d080db08d25ba1422e34c7d03020e0e70f3de3a9859'
16             '9e992cb8e5526024eeae1cd9dea7f32c0158c2c8d94c9a7a310a146f14eef417')
18 prepare() {
19   cd "$srcdir/$pkgname-$pkgver"
20   sed -e 's/gmcs/mcs/g' -i configure
23 build() {
24   local msbuild="$srcdir/msbuild/MSBuild.exe"
26   cd "$srcdir/$pkgname-$pkgver"
27   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
28   make
29   mono $msbuild src/dbus-sharp.csproj /p:WarningLevel=0;Configuration=Release
32 package(){
33   cd "$srcdir/$pkgname-$pkgver"
34   make DESTDIR="$pkgdir" install
35   install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"