[ create a new paste ] login | about

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

Plain Text, pasted on Apr 7:
# Maintainer: Chase Geigle <sky@skystrife.com>
# Edited by Zachary Lund <admin@computerquip.com>
pkgname=sdl2-hg
pkgver=6308
pkgrel=1
pkgdesc="hg build of sdl2"
arch=('x86_64' 'i686')
url="http://http://www.libsdl.org"
license=('MIT')
makedepends=(mercurial)
provides=(sdl2)
conflicts=(sdl2)
options=(!libtool)
 
 
_hgroot="http://hg.libsdl.org"
_hgrepo="SDL"
 
build() {
  msg "Checking out from $_hgroot/$_hgrepo..."
  if [ -d $_hgrepo ] ; then
    msg "Repository already exists. Updating..."
    cd $_hgrepo
    hg pull -u || true
    msg "Updated local files."
  else
    hg clone $_hgroot/$_hgrepo $_hgrepo || true
    cd $_hgrepo
    cd ..
  fi
 
  msg "Mercurial checkout done or server timed out."
  msg "Starting make..."
  rm -rf $srcdir/$_hgrepo/build
  mkdir $srcdir/$_hgrepo/build
  cd $srcdir/$_hgrepo/build
  $srcdir/$_hgrepo/configure --prefix=/usr
  make
}
 
package() {
  cd $srcdir/$_hgrepo/build
  make DESTDIR="$pkgdir/" install
  cd ..
  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}


Create a new paste based on this one


Comments: