summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 392ce87ec81cb2f3756ccaaf572269aa809678be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Maurizio D'Addona <mauritiusdadd@gmail.com>

_svnname='pk2-la'

pkgname=pk2-la-svn
pkgver=16 
pkgrel=5
pkgdesc="Program to use the Microchip PICkit 2 has as a logic analyzer and I/O probe"
arch=('any')
url="http://sourceforge.net/projects/pk2-la/"
license=('GPL2')
depends=('python2' 'python2-pyusb-git' 'pygtk')
provides=('pk2-la')
conflicts=('pk2-la')
makedepends=('subversion')

source=("$_svnname::svn+https://svn.code.sf.net/p/$_svnname/code")
md5sums=('SKIP')


pkgver() 
{
    cd "$srcdir/$_svnname"
    local ver="$(svnversion)"
    printf "%s" "${ver//[[:alpha:]]}"
}

prepare()
{
    msg "Patching files...."
    sed -i "s/python/python2/g" $srcdir/$_svnname/pk2-la
}

package() 
{
    cd "$srcdir/$_svnname/"
    msg "Creating package..."
    install -Dm755 pk2-la $pkgdir/usr/bin/pk2-la
    install -Dm644 COPYING $pkgdir/usr/share/licenses/pk2-la/COPYING
}