Added some reprap packages
authorHarvie <tomas@mudrunka.cz>
Wed, 4 May 2011 19:08:53 +0000 (21:08 +0200)
committerHarvie <tomas@mudrunka.cz>
Wed, 4 May 2011 19:08:53 +0000 (21:08 +0200)
libreprap-git/PKGBUILD [new file with mode: 0644]
repsnapper-git/PKGBUILD [new file with mode: 0644]

diff --git a/libreprap-git/PKGBUILD b/libreprap-git/PKGBUILD
new file mode 100644 (file)
index 0000000..9afb097
--- /dev/null
@@ -0,0 +1,48 @@
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer:  Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=libreprap-git
+pkgver=20110504
+pkgrel=1
+pkgdesc="Cross-platform cross-machine RepRap (SLA, stereolithography, 3D printing) communications library"
+arch=('x86_64' 'i686')
+url="https://github.com/Ralith/libreprap"
+license=('GPL')
+depends=()
+provides=(libreprap)
+makedepends=(git cmake)
+source=()
+md5sums=()
+
+_gitroot='git://github.com/Ralith/libreprap.git'
+_gitname="$pkgname"
+
+build() {
+  cd ${srcdir}/
+
+  cd "$srcdir"
+  msg "Connecting to GIT server...."
+
+  if [ -d $_gitname ] ; then
+    cd $_gitname && git pull origin
+    msg "The local files are updated."
+  else
+    git clone --depth 1 $_gitroot $_gitname
+  fi
+
+  msg "GIT checkout done or server timeout"
+  msg "Starting make..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+
+  #
+  # BUILD HERE
+  #
+
+       cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" || return 1
+       make || return 1
+       make install PREFIX="$pkgdir/usr" || return 1
+}
diff --git a/repsnapper-git/PKGBUILD b/repsnapper-git/PKGBUILD
new file mode 100644 (file)
index 0000000..fedd862
--- /dev/null
@@ -0,0 +1,50 @@
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer:  Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=repsnapper-git
+pkgver=20110504
+pkgrel=1
+pkgdesc="RepSnapper RepRap control software"
+arch=('x86_64' 'i686')
+url="https://github.com/timschmidt/repsnapper"
+license=('GPL')
+depends=(libreprap)
+makedepends=(git)
+source=()
+md5sums=()
+
+_gitroot='git://github.com/timschmidt/repsnapper.git'
+_gitname="$pkgname"
+
+build() {
+  cd ${srcdir}/
+
+  cd "$srcdir"
+  msg "Connecting to GIT server...."
+
+  if [ -d $_gitname ] ; then
+    cd $_gitname && git pull origin
+    msg "The local files are updated."
+  else
+    git clone --depth 1 $_gitroot $_gitname
+  fi
+
+  msg "GIT checkout done or server timeout"
+  msg "Starting make..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+
+  #
+  # BUILD HERE
+  #
+
+       #export PREFIX="$pkgdir/usr"
+       ./autogen.sh || return 1
+       ./configure --prefix="$pkgdir/usr" || return 1
+       make || return 1
+       #make install PREFIX="$pkgdir/usr" || return 1
+       make install || return 1
+}
This page took 0.144919 seconds and 4 git commands to generate.