[ create a new paste ] login | about

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

Plain Text, pasted on Jul 12:
# Contributor: Zariel <c.bannister@gmail.com>

pkgname=irssi-git
pkgver=20090421
pkgrel=1
pkgdesc="Irssi - A cli irc client"
arch=('i686' 'x86_64')
url="http://irssi.org/"
license=('GPL')
depends=('glib2' 'openssl' 'ncurses' 'perl>=5.10.0-1' 'lynx')
provides=('irssi')

_gitroot="git://git.irssi.org/irssi"
_gitname="irssi"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname
    git fetch origin
    git merge origin/trunk
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"


  ./autogen.sh --prefix=/usr --with-proxy --sysconfdir=/etc \
      --with-perl-lib=vendor

  make || return 1
  make DESTDIR=$startdir/pkg install

  rm $startdir/pkg/usr/lib/perl5/core_perl/perllocal.pod
}


Create a new paste based on this one


Comments: