summaryrefslogtreecommitdiff
path: root/extra/cvsps/PKGBUILD
blob: 27d2ec122e522a8e717a3be707ba03518aacc7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 151779 2012-03-02 17:28:27Z dan $
# Maintainer:
# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org>

pkgname=cvsps
pkgver=2.2b1
pkgrel=1
pkgdesc="Generating 'patchset' information from a CVS repository"
url="http://www.cobite.com/cvsps/"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
depends=('zlib')
source=("http://www.cobite.com/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        call-cvs-q-option.patch
        cvsps-2.2b1-bufferoverflow.patch
        cvsps-2.2b1-dynamic-logbuf.patch
        cvsps-2.2b1-man.patch
        seperate-CPPFLAGS.patch
        use-INADDR_NONE-define.patch
        use-__linux__-define.patch
        use-offsetof-macro.patch)
md5sums=('997580e8e283034995b9209076858c68'
         '06324c5e3c321126b76dc97fc6c00b34'
         '2910012a11a24d5e4192cf9eae7dd259'
         '970566460e72cb159426965d6e5763b3'
         'f9d2ee40e52ecd5096fa9a885418eee1'
         '6baafbd7512aa52e1b83ed0bead32a6e'
         'a3a81481c07dcc676f5a82ae07e8ee89'
         '9e2763315cbda02665c47827d38df459'
         '8f7e6f09f42f76deeefe24bbfa509150')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  for file in ${source[@]}; do
      if [[ $file == *.patch ]]; then
          patch -Np1 < ../$file
      fi
  done
  make prefix=/usr
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make prefix="$pkgdir/usr" install
}