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/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Contributor: Your Name <youremail@domain.com>
13 pkgdesc="A python3 implementation of Dissociated Press"
15 url="http://github.com/anschelsc/pydp"
27 md5sums=() #generate with 'makepkg -g'
29 _gitroot="git://github.com/anschelsc/pydp.git"
34 msg "Connecting to GIT server...."
36 if [ -d $_gitname ] ; then
37 cd $_gitname && git pull origin
38 msg "The local files are updated."
40 git clone $_gitroot $_gitname
43 msg "GIT checkout done or server timeout"
44 msg "Starting make..."
46 rm -rf "$srcdir/$_gitname-build"
47 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
48 cd "$srcdir/$_gitname-build"
50 install -d $pkgdir/usr/bin/ || return 1
51 install -m 755 $srcdir/$_gitname/pydp.py $pkgdir/usr/bin/pydp || return 1