csync-git
[mirrors/ArchLinux-Packages.git] / libreprap-git / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
4
5 pkgname=libreprap-git
6 pkgver=20110504
7 pkgrel=1
8 pkgdesc="Cross-platform cross-machine RepRap (SLA, stereolithography, 3D printing) communications library"
9 arch=('x86_64' 'i686')
10 url="https://github.com/Ralith/libreprap"
11 license=('GPL')
12 depends=()
13 provides=(libreprap)
14 makedepends=(git cmake)
15 source=()
16 md5sums=()
17
18 _gitroot='git://github.com/Ralith/libreprap.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
45 cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" || return 1
46 make || return 1
47 make install PREFIX="$pkgdir/usr" || return 1
48 }
This page took 0.237531 seconds and 4 git commands to generate.