All pastes #931390 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-07 03:44 UTC
rendered paste body
# Contributor: Xilon <xilonmu@gmail.com>
pkgname="libowfat-cvs"
pkgver=20080307
pkgrel=1
pkgdesc=""
arch=('i686' 'x86_64')
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=()
noextract=()
md5sums=()

_cvsroot=":pserver:cvs@cvs.fefe.de:/cvs"
_cvsmod="libowfat"

build() {
  cd $startdir/src
  msg "Connecting to CVS server...."
  if [ -d $_cvsmod/CVS ]; then
    cd $_cvsmod
    cvs -z3 update -d
  else
    cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
    cd $_cvsmod
  fi

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

  cp -r ../$_cvsmod ../$_cvsmod-build
  cd ../$_cvsmod-build

  #
  # BUILD HERE
  #
  sed -e "s#prefix=.*#prefix=$startdir/pkg/usr#" -i GNUmakefile
  sed -e 's#MAN3DIR=.*#MAN3DIR=${prefix}/share/man/man3#' -i GNUmakefile
  sed -e "s#CFLAGS=.*#CFLAGS=$CFLAGS#" -i GNUmakefile
  make || return 1
  make install || return 1
  rm -r $startdir/src/$_cvsmod-build
}