Added some reprap packages
[mirrors/ArchLinux-Packages.git] / libreprap-git / PKGBUILD
CommitLineData
b806a28d
H
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
5pkgname=libreprap-git
6pkgver=20110504
7pkgrel=1
8pkgdesc="Cross-platform cross-machine RepRap (SLA, stereolithography, 3D printing) communications library"
9arch=('x86_64' 'i686')
10url="https://github.com/Ralith/libreprap"
11license=('GPL')
12depends=()
13provides=(libreprap)
14makedepends=(git cmake)
15source=()
16md5sums=()
17
18_gitroot='git://github.com/Ralith/libreprap.git'
19_gitname="$pkgname"
20
21build() {
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.114477 seconds and 4 git commands to generate.