updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / crossvc / PKGBUILD
blobf57b48527aead2ee5c4f0dc8a38e2b5d786af75c
1 # $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
2 # Maintainer: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
4 pkgname=crossvc
5 pkgver=1.5.2
6 pkgrel=2
7 pkgdesc="A graphical interface for the cvs client"
8 arch=('i686' 'x86_64')
9 url="http://www.lincvs.org/"
10 license=('GPL')
11 depends=('qt3' 'cvs')
12 source=(http://crossvc.com/download/$pkgname-$pkgver-0-generic-src.tgz \
13         crossvc crossvc.desktop)
14 md5sums=('4fb196e4e5fb5b6c5d901601869308b2' \
15          '55ec40cdf6cacbba591dd95541e50574' \
16          '70506604810792b1740c94b67333073c')
18 build() {
19   cd $srcdir/CrossVC
21   . /etc/profile.d/qt3.sh
22   export PATH=$QTDIR/bin:$PATH
23   export QMAKESPEC=$QTDIR/mkspecs/linux-g++
25   qmake -o Makefile lincvs.pro || return 1
26   make || return 1
27   make install
29   install -Dm755 ${startdir}/crossvc $pkgdir/usr/bin/crossvc
31   # Fix permission in the package
32   mkdir -p $pkgdir/usr/share/${pkgname}/{Help,Messages,Tools}
33   install -m755 CrossVC/{AppRun,crossvc.bin} $pkgdir/usr/share/${pkgname}
34   install -m755 CrossVC/Tools/* $pkgdir/usr/share/${pkgname}/Tools
35   install -m644 CrossVC/Messages/* $pkgdir/usr/share/${pkgname}/Messages
36   install -m644 CrossVC/Help/* $pkgdir/usr/share/${pkgname}/Help
38   # Desktop related
39   install -Dm644 ${startdir}/crossvc.desktop $pkgdir/usr/share/applications/crossvc.desktop
40   install -Dm644 CrossVC/AppIcon.xpm $pkgdir/usr/share/pixmaps/crossvc.xpm