updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / libreprap-git / PKGBUILD
blob9afb097502efc1cfa2c391c6f01b977abb67030a
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/
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=()
18 _gitroot='git://github.com/Ralith/libreprap.git'
19 _gitname="$pkgname"
21 build() {
22   cd ${srcdir}/
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
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
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   #
42   # BUILD HERE
43   #
45         cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" || return 1
46         make || return 1
47         make install PREFIX="$pkgdir/usr" || return 1