summaryrefslogtreecommitdiff
path: root/pcr/qwtpolar/PKGBUILD
blob: 92427ed00bc1e6fab4eceefff0fd7bbbb789d172 (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
48
# Maintainer (Arch): SaultDon <sault.don gmail>
# Contributor (Arch): Gunther Schulz < mail at guntherschulz.de > 
# Contributor (Arch): Kévin Guilloy <kevin at guilloy dot ath dot cx>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=qwtpolar
_pkgver=1.1
pkgver=1.1.r182
pkgrel=6.1
pkgdesc="A Qwt library that contains classes for displaying values on a polar coordinate system."
arch=('i686' 'x86_64')
url="http://qwtpolar.sourceforge.net/"
license=('custom:Qwt License, Version 1.0')
depends=('qt4>=4.8.5'
         'qwt>=6.1.0')
makedepends=('subversion')
provides=("$pkgname=$pkgver")
conflicts=('qwtpolar'
           'qwtpolar-svn'
           'qwtpolar-svn-qt4')
source=("qwtpolar::svn+https://svn.code.sf.net/p/qwtpolar/code/branches/qwtpolar-${_pkgver}")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  local ver="$(svnversion)"
  printf "%s.r%s" "${_pkgver}" "${ver//[[:alpha:]]}"
}

build() {
  cd "$srcdir/$pkgname"

  sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/doc/\/usr\/share\/doc\/qwt\//' qwtpolarconfig.pri
  sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//' qwtpolarconfig.pri
  sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/lib/\/usr\/lib\//' qwtpolarconfig.pri
  sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/features\//' qwtpolarconfig.pri
  sed -i -e 's/^.*QwtPolarDesigner//' qwtpolarconfig.pri
  sed -i -e 's/^.*QwtPolarExamples//' qwtpolarconfig.pri
  echo "INCLUDEPATH += /usr/include" >> qwtpolarbuild.pri

  qmake-qt4 qwtpolar.pro
  make
}

package() {
  cd "$srcdir/$pkgname"

  make INSTALL_ROOT="${pkgdir}"/ install
}