updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / paint.mono-svn / PKGBUILD
blobd019670065d1cd79e8d42f9dc5226b79d7b1d6b7
1 # Contributor: raca <raca@algohumano.net>
2 # Contributor: Vithon <ratm@archlinux.us>
4 pkgname='paint.mono-svn'
5 pkgver=63
6 pkgrel=1
7 pkgdesc="A paint.NET port to mono"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/paint-mono"
10 license=('MIT')
11 depends=('mono')
12 makedepends=('subversion' 'fakeroot')
13 conflicts=('paint.mono')
14 options=(!strip !docs !makeflags)
15 install='paint.mono.install'
16 source=('paint.mono.install' 'paint.mono.desktop' 'LICENSE')
17 md5sums=('276b45a5148f75e66398e420828312f0'
18          'ae1941b31825f314bc71ad880f0ebbc5'
19          '4bbe82aec78932db45b6695cf7777648')
21 _svntrunk=http://paint-mono.googlecode.com/svn/trunk/
22 _svnmod=paint.mono
24 _progname=paint.mono
26 build() {
27   cd $startdir/src
29   if [ -d $_svnmod/.svn ]; then
30     (cd $_svnmod && svn up)
31   else
32     svn co $_svntrunk --config-dir ./ $_svnmod
33   fi
35   msg "SVN checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf $startdir/src/$_svnmod-build
39   cp -r $_svnmod $_svnmod-build
40   cd $_svnmod/src
42   #
43   # BUILD
44   #
46   export MONO_SHARED_DIR=$srcdir/.wabi
47   mkdir -p ${MONO_SHARED_DIR}
49   ./configure --prefix=/usr/share/${_progname}
50   make || return 1
51   make DESTDIR=$pkgdir install
53   # install desktop file
54   install -Dm644 ${srcdir}/${_progname}.desktop \
55     ${pkgdir}/usr/share/applications/${_progname}.desktop
57   # install icon file
58   install -Dm644 ${srcdir}/$_svnmod-build/src/Resources/Images/Icon50x50.png \
59     ${pkgdir}/usr/share/paint.mono/Icon50x50.png
61   # instal paint.mono bin
62   install -Dm755 ${pkgdir}/usr/share/${_progname}/bin/paintdotnet \
63     ${pkgdir}/usr/bin/${_progname}
65   # install license
66   install -Dm644 ${srcdir}/$_svnmod-build/src/Resources/Files/License.txt \
67     ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
69   rm -rf "${MONO_SHARED_DIR}"