summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qwtpolar/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/qwtpolar/PKGBUILD b/qwtpolar/PKGBUILD
new file mode 100644
index 000000000..0c08c8c62
--- /dev/null
+++ b/qwtpolar/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Doug Newgard <scimmia at archlinux dot info>
+# Contributor: SaultDon <sault.don gmail>
+# Contributor: Gunther Schulz < mail at guntherschulz.de >
+# Contributor: Kévin Guilloy <kevin at guilloy dot ath dot cx>
+
+pkgname=qwtpolar
+pkgver=1.1.1
+pkgrel=3
+pkgdesc='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')
+depends=('gcc-libs' 'glibc' 'qt5-base' 'qt5-svg' 'qwt')
+optdepends=('qt5-tools: For Designer plugin')
+makedepends=('qt5-tools')
+conflicts=('qwtpolar-qt5')
+provides=("qwtpolar-qt5=$pkgver")
+replaces=('qwtpolar-qt5')
+source=("http://sourceforge.net/projects/qwtpolar/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2")
+sha1sums=('38edf5220c971eef0e88fcc6db7c718e6198ccac')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ sed -e '/^\s*QWT_POLAR_INSTALL_PREFIX/ s|=.*|= /usr|' \
+ -e '/^QWT_POLAR_INSTALL_DOCS/ s|/doc|/share/doc/qwtpolar|' \
+ -e '/^QWT_POLAR_INSTALL_HEADERS/ s|/include|&/qwt|' \
+ -e '/^QWT_POLAR_INSTALL_PLUGINS/ s|/plugins/designer|/lib/qt&|' \
+ -e '/^QWT_POLAR_INSTALL_FEATURES/ s|/features|/lib/qt/mkspecs&|' \
+ -e '/QwtPolarExamples/ s/^/# /' \
+ -i qwtpolarconfig.pri
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ qmake-qt5 qwtpolar.pro
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
+ mv "$pkgdir/usr/share/doc/qwtpolar/man/" "$pkgdir/usr/share/"
+ rm "$pkgdir/usr/share/man/man3/qwtlicense.3"
+}