1 # Contributor: raca <raca@algohumano.net>
2 # Contributor: Vithon <ratm@archlinux.us>
4 pkgname='paint.mono-svn'
7 pkgdesc="A paint.NET port to mono"
9 url="http://code.google.com/p/paint-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/
29 if [ -d $_svnmod/.svn ]; then
30 (cd $_svnmod && svn up)
32 svn co $_svntrunk --config-dir ./ $_svnmod
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
46 export MONO_SHARED_DIR=$srcdir/.wabi
47 mkdir -p ${MONO_SHARED_DIR}
49 ./configure --prefix=/usr/share/${_progname}
51 make DESTDIR=$pkgdir install
53 # install desktop file
54 install -Dm644 ${srcdir}/${_progname}.desktop \
55 ${pkgdir}/usr/share/applications/${_progname}.desktop
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}
66 install -Dm644 ${srcdir}/$_svnmod-build/src/Resources/Files/License.txt \
67 ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
69 rm -rf "${MONO_SHARED_DIR}"