[ create a new paste ] login | about

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

Plain Text, pasted on Mar 14:
# Maintainer : SpepS <dreamspepser at yahoo dot it>
# Contributor: Bernardo Barros <bernardobarros@gmail.com>
# Contributor: Army
pkgname=ardour3-git
pkgver=20130314
pkgrel=1
pkgdesc="A multichannel hard disk recorder and digital audio workstation"
arch=('i686' 'x86_64')
url="http://www.ardour.org/"
license=('GPL')
depends=('libgnomecanvasmm' 'liblrdf' 'liblo' 'aubio' 'libsmf' 'lilv' 'suil' 'desktop-file-utils')
makedepends=('git' 'python2' 'boost' 'cppunit' 'doxygen' 'graphviz')
provides=('ardour3-svn')
conflicts=('ardour3-svn')
install=$pkgname.install
source=($pkgname.desktop)
md5sums=('2736c648e452ae45c703e48cf64f75e7')

#_gitroot=git://ardour.org/ardour/ardour
_gitroot=git://github.com/Ardour/ardour.git
_gitname=ardour

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"
  
  python2 waf configure \
    --prefix=/usr \
    --configdir=/etc \
    --docs \
    --freedesktop \
    --lv2 \
    --noconfirm
  
  python2 waf build
}

package() {
  cd "$srcdir/$_gitname-build"
  python2 waf --destdir="$pkgdir/" install
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$_name.desktop"
}

# vim:set ts=2 sw=2 et:



Create a new paste based on this one


Comments: