pkgname=sisl pkgver=20130826 pkgrel=1 pkgdesc=SISL is a comprehensive NURBS library for the modeling and interrogation of curves and surfaces. It is implemented in C. arch=(any) url="https://github.com/SINTEF-Geometry/SISL" license=('GPL') groups=() depends=() makedepends=('git' 'cmake') provides=('sisl') conflicts=() replaces=() backup=() options=() install= source=() noextract=() md5sums=() #generate with 'makepkg -g' _gitroot="https://github.com/SINTEF-Geometry/SISL.git" _gitname="sisl" 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 "Starting build..." rm -rf "$srcdir/$_gitname-build" git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" # # BUILD HERE # mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=$pkgdir/usr -DCMAKE_BUILD_TYPE=Release make } package() { cd "$srcdir/$_gitname-build/build" make install }