summaryrefslogtreecommitdiff
path: root/gis/qwt5/PKGBUILD
blob: f998a076548622fef281242f7c221185ee49a042 (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
46
47
# Maintainer:  Eugen Zagorodniy <e dot zagorodniy at gmail dot com>
# Contributor: Ronald van Haren <ronald.archlinux.org>

pkgname=qwt5
pkgver=5.2.2
pkgrel=1
pkgdesc="Qt Widgets for Technical Applications (version 5.X)"
arch=('i686' 'x86_64')
url="http://qwt.sourceforge.net/"
depends=('qt>=4.5.1')
options=('!makeflags')
license=("custom:$pkgname")
provides=('qwt')
source=("http://downloads.sourceforge.net/sourceforge/qwt/qwt-$pkgver.tar.bz2" \
        "qwtconfig-archlinux.pri")
md5sums=('70d77e4008a6cc86763737f0f24726ca'
         '15db52c3312b5f8f7cbbdabc4831591b')
build() {
  cd ${srcdir}/qwt-${pkgver}

  # copy our config file to the right place
  install -Dm644 ${srcdir}/qwtconfig-archlinux.pri \
	${srcdir}/qwt-${pkgver}/qwtconfig.pri

  # build qwt:
  qmake qwt.pro
  make || return 1
}

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

  make INSTALL_ROOT=${pkgdir} QTDIR=/usr install

  # rename conlicting symlink
  mv ${pkgdir}/usr/lib/libqwt.so ${pkgdir}/usr/lib/libqwt5.so

  # move html docs to propee place and move man pages to avoid conflict
  # with qwt from [extra]
  install -d ${pkgdir}/usr/share/doc/${pkgname}
  mv ${pkgdir}/usr/share/html ${pkgdir}/usr/share/doc/${pkgname}/
  mv ${pkgdir}/usr/share/man ${pkgdir}/usr/share/doc/${pkgname}/

  # install licence
  install -Dm644 ${srcdir}/qwt-${pkgver}/COPYING \
	${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}