1 # Contributor: Bernhard Walle <bernhard@bwalle.de>
7 pkgdesc="Embedded Linux build system"
9 url="http://www.ptxdist.org"
11 depends=('dialog' 'flex' 'bison')
12 makedepends=('automake' 'autoconf')
13 source=("ptxdist-python2.diff")
14 md5sums=('a9ec03a19f79ebafdfaf6c1095d67f24')
17 _gitroot="git://git.pengutronix.de/git/ptxdist.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git checkout . && git pull origin
26 msg "The local files are updated."
28 echo $_gitroot $_gitname
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
34 cd "$srcdir/$_gitname"
36 patch -p1 -i ${srcdir}/ptxdist-python2.diff
38 ./configure --prefix=/usr --with-python=python2
43 cd "$srcdir/$_gitname"
44 make DESTDIR=${pkgdir} install
45 local pkg_bindir=$(dirname "${pkgdir}/$(readlink ${pkgdir}/usr/bin/ptxdist)")
46 ln -s /usr/bin/python2 "${pkg_bindir}/python"