1 # Maintainer: Gen2ly <dirk.r.gently@gmail.com>
5 pkgdesc="Python bindings for libparted"
7 url="https://fedorahosted.org/pyparted/"
9 depends=('python' 'python-decorator' 'parted-git')
13 _gitroot="git://git.fedorahosted.org/pyparted.git/"
18 msg "Connecting to git.fedorahosted.org GIT server...."
20 if [ -d ${srcdir}/$_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
27 # Bug: Undefined Module Constant
28 #sed -i -e "s: PyModule_AddIntConstant(m, "PARTITION_APPLE_TV_RECOVERY", PED_PARTITION_APPLE_TV_RECOVERY);:/* PyModule_AddIntConstant(m, "PARTITION_APPLE_TV_RECOVERY", PED_PARTITION_APPLE_TV_RECOVERY); */:g" ${srcdir}/$_gitname/src/_pedmodule.c
29 # Ugly hack, as couldn't get above to work
30 sed -i -e "482d" ${srcdir}/$_gitname/src/_pedmodule.c
32 cd ${srcdir}/$_gitname
34 ./configure --prefix=/usr
36 make DESTDIR="$pkgdir/" install || return 1