updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / pyparted-git / PKGBUILD
blob0196e5cff208effdbe7138a1a266ce22253b4c4c
1 # Maintainer: Gen2ly <dirk.r.gently@gmail.com>
2 pkgname=pyparted-git
3 pkgver=20090821
4 pkgrel=1
5 pkgdesc="Python bindings for libparted"
6 arch=('any')
7 url="https://fedorahosted.org/pyparted/"
8 license=('GPL2')
9 depends=('python' 'python-decorator' 'parted-git')
10 makedepends=('git')
11 source=()
13 _gitroot="git://git.fedorahosted.org/pyparted.git/"
14 _gitname="pyparted"
16 build() {
17   cd ${srcdir}
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."
23     else
24     git clone $_gitroot
25   fi
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
33   sh autogen.sh
34   ./configure --prefix=/usr
35   make || return 1
36   make DESTDIR="$pkgdir/" install || return 1
39 md5sums=()