[ create a new paste ] login | about

Link: http://codepad.org/HMfEGpnk    [ raw code | fork ]

Plain Text, pasted on Sep 7:
pkgname=libactp-git
pkgver=20130905
pkgrel=1
pkgdesc="The libactp (Adaptive Clearing Tool Path Library) is an implementation of the GPL'ed algorithm demonstrated in FreeSteel as a set of C library functions"
arch=('i686' 'x86_64')
url="https://github.com/Heeks/libactp"
license=('custom:BSD3')
depends=('python2')
makedepends=('git' 'python2')
provides=('libactp')
conflicts=('libactp' 'libactp-git')
source=('Makefile.patch')
noextract=()
md5sums=('40871aa1bb896d5676c764353ef79e56')

_gitroot=git://github.com/Heeks/libactp.git
_gitname=libactp

build() {
  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 "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Patching..."

  cd "$srcdir/$_gitname/PythonLib"

  patch < ../../Makefile.patch

  msg "Starting build..."

  #
  # BUILD HERE
  #
  make PREFIX=/usr .
}

package() {
  cd "$srcdir/$_gitname/PythonLib"
  make install DESTDIR=$pkgdir
}



Create a new paste based on this one


Comments: