updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / vera++ / PKGBUILD
blob750d6bd207c1407a0c579ab14468c0de920b09ec
1 # Maintainer: Alexander Drozdov <adrozdoff@gmail.com>
2 pkgname=vera++
3 pkgver=1.1.1
4 pkgrel=1
6 _boostname=boost
7 _boostver=1_43_0
9 pkgdesc="A programmable tool for verification, analysis and transformation of C++ source code"
10 arch=(i686 x86_64)
11 url="http://www.inspirel.com/vera/"
12 license=('custom:boost')
13 depends=('sh' 'gcc-libs' 'tcl>=8.5' 'tcl<8.6')
15 makedepends=()
16 optdepends=()
17 provides=()
18 conflicts=()
19 replaces=()
20 backup=()
21 options=()
22 install=
23 changelog=
25 source=(http://www.inspirel.com/vera/files/$pkgname-$pkgver.tar.gz
26         http://downloads.sourceforge.net/sourceforge/${_boostname}/${_boostname}_${_boostver}.tar.gz
27         vera++)
29 noextract=()
31 build() {
32   cd "$srcdir/$pkgname-$pkgver"
34   BOOST_DIR=${srcdir}/${_boostname}_${_boostver}
35   TCL_LIB=tcl8.5
36   sed -i 's|^\(BOOST_DIR[ \t]*=[ \t]*\).*$|\1'$BOOST_DIR'|;
37           s|^\(TCL_LIB[ \t]*=[ \t]*\).*$|\1'$TCL_LIB'|' src/Make.common
38   make
41 package() {
42   cd "$srcdir/$pkgname-$pkgver"
44   install -d ${pkgdir}/usr/bin
45   install -d ${pkgdir}/usr/lib/${pkgname}
46   install -d ${pkgdir}/usr/share/doc/${pkgname}
47   install -d ${pkgdir}/usr/share/licenses/${pkgname}
49   install -m 755 vera++           ${pkgdir}/usr/lib/${pkgname}/vera++
50   install -m 755 ${srcdir}/vera++ ${pkgdir}/usr/bin/vera++
51   install -m 644 LICENSE_1_0.txt  ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_1_0.txt
52   
53   cp -a profiles scripts ${pkgdir}/usr/lib/${pkgname}/
54   cp -a doc CHANGES      ${pkgdir}/usr/share/doc/${pkgname}/
57 md5sums=('1077f55265e67c53dccaba200fbb8668'
58          '734565ca4819bf04bd8e903e116c3fb1'
59          'ca32269270ea3fa61079e05630cdbb46')