summaryrefslogtreecommitdiff
path: root/community/vym/PKGBUILD
blob: db30012d4f6d7a99b874d37e96ab6f3489fc34ae (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 70394 2012-05-05 13:56:05Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> 
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: S�ren Holm <sgh@sgh.dk> 

pkgname=vym
pkgver=2.0.12
pkgrel=1
pkgdesc="A mindmapping tool"
arch=('i686' 'x86_64')
url="http://www.insilmaril.de/vym/"
license=('GPL')
depends=('qt' 'unzip' 'zip')
options=('!emptydirs')
changelog=$pkgname.changelog
install=$pkgname.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 \
        $pkgname.desktop)
sha256sums=('6557ce134506f6654767c63e4a7aedbd9acc4c6f02e38cdb6041fa4ca51ca06c'
            'e299c69c213e7aac3f5b5d0ab088132b4ec7cb63a391f272e75ed64f049d541b')

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

  qmake PREFIX=/usr
  make
}

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

# install files
  make INSTALL_ROOT=${pkgdir} install

# correct doc location
  install -d ${pkgdir}/usr/share/doc/$pkgname
  install -m644 doc/* ${pkgdir}/usr/share/doc/$pkgname
  rm -rf ${pkgdir}/usr/share/doc/packages

# .desktop and icon file
  install -D -m644 ${srcdir}/$pkgname.desktop \
    ${pkgdir}/usr/share/applications/$pkgname.desktop
  install -D -m644 ${pkgdir}/usr/share/vym/icons/$pkgname.png \
    ${pkgdir}/usr/share/pixmaps/$pkgname.png
}