From b806a28d868971123d21b91a623f37a0afd6bcb2 Mon Sep 17 00:00:00 2001 From: Harvie Date: Wed, 4 May 2011 21:08:53 +0200 Subject: [PATCH] Added some reprap packages --- libreprap-git/PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++ repsnapper-git/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 libreprap-git/PKGBUILD create mode 100644 repsnapper-git/PKGBUILD diff --git a/libreprap-git/PKGBUILD b/libreprap-git/PKGBUILD new file mode 100644 index 0000000..9afb097 --- /dev/null +++ b/libreprap-git/PKGBUILD @@ -0,0 +1,48 @@ +# Contributor: Thomas Mudrunka +# Maintainer: Thomas Mudrunka +# 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 index 0000000..fedd862 --- /dev/null +++ b/repsnapper-git/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: Thomas Mudrunka +# Maintainer: Thomas Mudrunka +# 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 +} -- 2.30.2