updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / simpmd-svn / PKGBUILD
blobc42f175f497f190e8a4bd11cce8b770c98484a70
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=simpmd-svn
4 pkgver=55
5 pkgrel=1
6 pkgdesc="Full emulator of PMD85 (svn)"
7 arch=('i686' 'x86_64')
8 url="http://dsrg.mff.cuni.cz/~ceres/prj/SimPMD/"
9 license=('apache')
10 depends=('sdl' 'python' 'popt' 'doxygen')
11 source=('simpmd.desktop')
12 md5sums=('8fba184b70c9eea6cbe63a9b567fd8b7')
14 _svntrunk="http://shiva.ms.mff.cuni.cz/svn/simpmd/trunk"
15 _svnmod="simpmd"
17 build() {
18         cd $srcdir
20         # get the sources
21         msg "Connecting to $_svntrunk ..."
22         if [ -d $_svnmod/.svn ]; then
23                 (cd $_svnmod && svn up) || return 1
24         else
25                 svn co $_svntrunk $_svnmod || return 1
26         fi
27         msg "SVN checkout done or server timeout"
29   install -D -m644 $srcdir/simpmd.desktop $pkgdir/usr/share/applications/simpmd.desktop
31   cd $srcdir/simpmd
32   mkdir -p $pkgdir/usr/share/{doc/simpmd-${pkgver},simpmd}
33   make PMD_BUILD=RELEASE PMD_SHARE=/usr/share/simpmd/
34   chmod 755 data/monitors/M{1,2,2-Patched-Tape}
35   #cd data/
36   #ln -s monitors/M1 ./M1
37   #ln -s monitors/M2-Patched-Tape ./M2
38   #cd ..
41 package() {
42   cd $srcdir/simpmd
43   install -D -m755 bin/simpmd $pkgdir/usr/bin/simpmd
44   install -D -m755 bin/ptp2raw $pkgdir/usr/bin/ptp2raw
45   rm Makefile
46   install -D -m644 * $pkgdir/usr/share/doc/simpmd-${pkgver} || true
47   cd $srcdir/simpmd/data
48   /bin/tar cf - --exclude=.svn * | ( cd ../../../pkg/usr/share/simpmd/; tar xfp - )