summaryrefslogtreecommitdiff
path: root/gis/qwt5/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-31 16:24:59 +0000
committerroot <root@rshg054.dnsready.net>2012-05-31 16:24:59 +0000
commitf5a8de28b86c2c838a28e79aa54f8b4c3fbd869e (patch)
tree26873b23c15ea28962e55ab4dc7ae94b468089cf /gis/qwt5/PKGBUILD
parentf1ae949e08a764ac063703dc9bb7f0afd7c16e96 (diff)
Thu May 31 16:24:59 UTC 2012
Diffstat (limited to 'gis/qwt5/PKGBUILD')
-rw-r--r--gis/qwt5/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/gis/qwt5/PKGBUILD b/gis/qwt5/PKGBUILD
new file mode 100644
index 000000000..f998a0765
--- /dev/null
+++ b/gis/qwt5/PKGBUILD
@@ -0,0 +1,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
+}