PKGBUILD-cvs.proto 1.3 KB
Newer Older
1
2
3
4
5
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

Allan McRae's avatar
Allan McRae committed
6
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
Allan McRae's avatar
Allan McRae committed
7
8
# for more information on packaging from CVS sources.

9
# Maintainer: Your Name <youremail@domain.com>
Allan McRae's avatar
Allan McRae committed
10
pkgname=NAME-cvs
11
12
13
14
15
16
17
18
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url=""
license=('GPL')
groups=()
depends=()
19
makedepends=('cvs')
20
21
22
23
24
25
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
26
source=()
27
28
29
noextract=()
md5sums=() #generate with 'makepkg -g'

matt mooney's avatar
matt mooney committed
30
31
_cvsroot=CVSROOT
_cvsmod=MODNAME
32
33

build() {
Allan McRae's avatar
Allan McRae committed
34
  cd "$srcdir"
35
  msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
matt mooney's avatar
matt mooney committed
36
37
38

  if [[ -d "$_cvsmod/CVS" ]]; then
    cd "$_cvsmod"
39
40
    cvs -z3 update -d
  else
matt mooney's avatar
matt mooney committed
41
42
    cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
    cd "$_cvsmod"
43
44
45
  fi

  msg "CVS checkout done or server timeout"
matt mooney's avatar
matt mooney committed
46
  msg "Starting build..."
47

Allan McRae's avatar
Allan McRae committed
48
  rm -rf "$srcdir/$_cvsmod-build"
Allan McRae's avatar
Allan McRae committed
49
50
  cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
  cd "$srcdir/$_cvsmod-build"
51
52
53
54
55
56

  #
  # BUILD HERE
  #
  ./autogen.sh
  ./configure --prefix=/usr
57
  make
58
59
60
61
}

package() {
  cd "$srcdir/$_cvsmod-build"
62
  make DESTDIR="$pkgdir/" install
63
}
matt mooney's avatar
matt mooney committed
64
65

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