updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / ptxdist-git / PKGBUILD
blobea5d2269110c559cb61c115aaa58a8402a7191d9
1 # Contributor: Bernhard Walle <bernhard@bwalle.de>
2 # AUR Category: devel
4 pkgname=ptxdist-git
5 pkgver=20110715
6 pkgrel=2
7 pkgdesc="Embedded Linux build system"
8 arch=('i686' 'x86_64')
9 url="http://www.ptxdist.org"
10 license=('GPL')
11 depends=('dialog' 'flex' 'bison')
12 makedepends=('automake' 'autoconf')
13 source=("ptxdist-python2.diff")
14 md5sums=('a9ec03a19f79ebafdfaf6c1095d67f24')
15 conflicts=('ptxdist')
17 _gitroot="git://git.pengutronix.de/git/ptxdist.git"
18 _gitname="ptxdist"
20 build() {
21   cd $srcdir
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."
27   else
28     echo $_gitroot $_gitname
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
34   cd "$srcdir/$_gitname"
36   patch -p1 -i ${srcdir}/ptxdist-python2.diff
37   ./autogen.sh
38   ./configure --prefix=/usr --with-python=python2
39   make
42 package() {
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"