diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-16 00:22:49 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-16 00:22:49 -0500 |
commit | 5206bedbe67e1c2cb9b588dbeed28ef3f5301e4e (patch) | |
tree | 4e92177bd77b2229e0142d589ca4b9234e82706f /pcr/qwtpolar | |
parent | 2cf57285be1ee097344b7d063a2df1916f63e12e (diff) |
qwtpolar: add new package to [pcr]
Diffstat (limited to 'pcr/qwtpolar')
-rw-r--r-- | pcr/qwtpolar/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pcr/qwtpolar/PKGBUILD b/pcr/qwtpolar/PKGBUILD new file mode 100644 index 000000000..a4cb5c91b --- /dev/null +++ b/pcr/qwtpolar/PKGBUILD @@ -0,0 +1,48 @@ +# Contributor (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 +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 +}
\ No newline at end of file |