Working PKGBUILD for repnapper-git
[mirrors/ArchLinux-Packages.git] / repsnapper-git / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Contributor: Nick Østergaard <oe.nick at gmail dot com>
3 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
4 # You can also contact me on http://blog.harvie.cz/
5
6 pkgname=repsnapper-git
7 pkgver=20120620
8 pkgrel=1
9 pkgdesc="RepSnapper RepRap control software"
10 arch=('x86_64' 'i686')
11 url="https://github.com/timschmidt/repsnapper"
12 license=('GPL')
13 depends=('libreprap-git' 'gtkglext' 'libxml++')
14 makedepends=(git)
15 source=()
16 md5sums=()
17
18 _gitroot='git://github.com/timschmidt/repsnapper.git'
19 _gitname="$pkgname"
20
21 build() {
22 cd ${srcdir}/
23
24 cd "$srcdir"
25 msg "Connecting to GIT server...."
26
27 if [ -d $_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
30 else
31 git clone --depth 1 $_gitroot $_gitname
32 fi
33
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
36
37 rm -rf "$srcdir/$_gitname-build"
38 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
40
41 #
42 # BUILD HERE
43 #
44 ./autogen.sh
45 ./configure --prefix=/usr
46 make
47 }
48
49 package() {
50 cd "$srcdir/$_gitname-build"
51 make DESTDIR="$pkgdir/" install
52 }
This page took 0.220787 seconds and 4 git commands to generate.