summaryrefslogtreecommitdiff
path: root/qwt-qt4/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-16 11:03:48 +0200
committerErich Eckner <git@eckner.net>2017-08-16 11:04:05 +0200
commit86d9d898ec6b1e004c7041f798df0d86b234885f (patch)
treef5c5167c277889eb4693234c13201690d400c47b /qwt-qt4/PKGBUILD
parentdd7c93585aa79913852f5fa90f78fb93e8a00026 (diff)
downloadarchlinuxewe-86d9d898ec6b1e004c7041f798df0d86b234885f.tar.xz
qwt-qt4 neu
Diffstat (limited to 'qwt-qt4/PKGBUILD')
-rw-r--r--qwt-qt4/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/qwt-qt4/PKGBUILD b/qwt-qt4/PKGBUILD
new file mode 100644
index 000000000..ae234d5f6
--- /dev/null
+++ b/qwt-qt4/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Doug Newgard <scimmia at archlinux dot info>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+
+pkgname=qwt-qt4
+_pkgname=qwt
+pkgver=6.1.3
+pkgrel=1
+pkgdesc='Qt Widgets for Technical Applications - Qt4 version'
+arch=('i686' 'x86_64')
+url='http://qwt.sourceforge.net/'
+depends=('gcc-libs' 'glibc' 'qt4')
+license=('custom')
+source=("https://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.bz2")
+sha1sums=('90ec21bc42f7fae270482e1a0df3bc79cb10e5c7')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ sed -e '/^\s*QWT_INSTALL_PREFIX/ s|=.*|= /usr|' \
+ -e '/^QWT_INSTALL_DOCS/ s|^|#|' \
+ -e '/^QWT_INSTALL_HEADERS/ s|include|&/qwt-qt4|' \
+ -e '/^QWT_INSTALL_PLUGINS/ s|plugins/designer|lib/qt4/&|' \
+ -e '/^QWT_INSTALL_FEATURES/ s|features|share/qt4/mkspecs/&|' \
+ -i qwtconfig.pri
+
+ sed -i '/^\s*\(LIBRARY_NAME\|LIB_NAME\)/ s/$/-qt4/' qwtfunctions.pri
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ qmake-qt4 qwt.pro
+
+ make
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
+}