1 # Maintainer: Fernando Munoz <f[at]beford.net>
2 # Contributor: Gen2ly <dirk.r.gently[at]gmail.com>
4 pkgname=liveusb-creator-git
7 pkgdesc="Cross-platform tool for easily installing live operating systems on to USB flash drives."
9 url="https://fedorahosted.org/liveusb-creator/"
12 depends=('dosfstools' 'isomd5sum' 'pyparted' 'python2' 'python2-pyqt' 'p7zip' 'syslinux' 'mtools' 'urlgrabber')
15 _gitroot="git://git.fedorahosted.org/liveusb-creator.git"
16 _gitname="liveusb-creator"
20 msg "Connecting to git.fedorahosted.org GIT server...."
22 if [ -d ${srcdir}/$_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg 'Patching for python2'
31 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find ${srcdir} -name '*.py')
33 sed -i -e "s|#![ ]*/usr/bin/python|#!/usr/bin/python2|" ${srcdir}/$_gitname/liveusb-creator
35 cd ${srcdir}/$_gitname/
37 python2 ./setup.py build
38 python2 ./setup.py install --root=${pkgdir}