summaryrefslogtreecommitdiff
path: root/community/qsvn/PKGBUILD
blob: fdd5b1da97d995913a75c2de5b60218b94726b9d (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
# $Id: PKGBUILD 67770 2012-03-14 11:19:01Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Jakub Schmidtke <sjakub-at-gmail.com>

pkgname=qsvn
pkgver=0.8.3
pkgrel=3
pkgdesc="Qt4 GUI for Subversion."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.anrichter.net/projects/qsvn/"
license=('GPL')
depends=('qt' 'subversion')
makedepends=('cmake')
#options=('!makeflags')
source=("http://www.anrichter.net/projects/qsvn/chrome/site/$pkgname-$pkgver-src.tar.gz"
        'lib64-fix.patch')
md5sums=('cfdc9dab7c5f1cbf20b249901e10c04e'
         'f2833303f01331538d1f6f2150b58e4f')

build() {
  cd ${srcdir}/$pkgname-$pkgver/src

  patch -Np2 -i "${srcdir}/lib64-fix.patch"

  cmake -D CMAKE_INSTALL_PREFIX=/usr/ -D CMAKE_BUILD_TYPE="Release" ../src
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver/src

  make DESTDIR=${pkgdir} install

  #desktop file
  install -D -m644 ${srcdir}/$pkgname-$pkgver/src/$pkgname.desktop \
    ${pkgdir}/usr/share/applications/$pkgname.desktop
}