updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / bitpim-svn / PKGBUILD
blobd93c79d3e4ded67f81d08e927f0e187e7cc83486
1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
3 pkgname=bitpim-svn
4 pkgver=4835
5 pkgrel=1
6 pkgdesc="A program to view and manipulate data on many CDMA phones from LG, Samsung, Sanyo, etc (SVN)."
7 arch=('i686' 'x86_64')
8 url="http://www.bitpim.org/"
9 license=('GPL')
10 depends=('python' 'gtk2' 'libusb' 'libstdc++5' 'gmp' 'libsm' 'libxxf86vm' 'python-pyserial' 'python-apsw' 'wxpython')
11 makedepends=('subversion')
12 source=('usr-bin' 'desktop-shortcut')
13 provides=('bitpim')
14 md5sums=('b0eb7983a25e47d1056f6b827bf4ea16'
15          '3b81f536725f336186084323ee193fd1')
17 _svntrunk=https://bitpim.svn.sourceforge.net/svnroot/bitpim/trunk/bitpim/
18 _svnmod=bitpim
20 build() {
21         cd ${srcdir}
23         mkdir -p ${pkgdir}/usr/bin
24         install -m 755 usr-bin ${pkgdir}/usr/bin/bitpim
26         mkdir -p ${pkgdir}/usr/share/applications
27         cp desktop-shortcut ${pkgdir}/usr/share/applications/bitpim.desktop
29         if [ -d $_svnmod/.svn ]; then
30                 (cd $_svnmod && svn up -r $pkgver)
31         else
32                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33         fi
35         cd $_svnmod
37         mkdir -p ${pkgdir}/usr/share/bitpim
38         cp -r help helpers resources src ${pkgdir}/usr/share/bitpim
40         sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
41                -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
42           $(find $pkgdir -name '*.py')