1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/Python_Package_Guidelines for more
7 # information on Python packaging.
9 # Maintainer: Your Name <youremail@domain.com>
10 pkgname=python-distpnd-git
13 pkgdesc="distutils commands to create PND files for the Pandora handheld."
15 url="https://github.com/Tempel/distPND"
19 optdepends=('squashfs-tools: build standard compressed PNDs'
20 'cdrkit: build iso file PNDs')
21 provides=('python-distpnd')
22 conflicts=('python-distpnd')
30 _gitroot="https://github.com/Tempel/distPND.git"
35 msg "Connecting to GIT server...."
37 if [ -d $_gitname ] ; then
38 cd $_gitname && git pull origin
39 msg "The local files are updated."
41 git clone --bare $_gitroot $_gitname
44 msg "GIT checkout done or server timeout"
45 msg "Starting make..."
47 rm -rf "$srcdir/$_gitname-build"
48 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
49 cd "$srcdir/$_gitname-build"
50 git checkout origin/develop
52 python2 setup.py install --root=$pkgdir/ --optimize=1
54 install -D -m644 "$srcdir/$_gitname-build/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
57 # vim:set ts=2 sw=2 et: