summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-25 00:33:48 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-25 00:33:48 -0500
commit0839f4273747f85f82a98edac8b45ae5767391c5 (patch)
tree32fa251a4ec6aa799de22af5326bfffdf652c59a
parentd7ced00bb0fd608947e851494970804e6795c552 (diff)
downloadabslibre-0839f4273747f85f82a98edac8b45ae5767391c5.tar.gz
abslibre-0839f4273747f85f82a98edac8b45ae5767391c5.tar.bz2
abslibre-0839f4273747f85f82a98edac8b45ae5767391c5.zip
Add qwt-qt4
-rw-r--r--pcr/qwt-qt4/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/qwt-qt4/PKGBUILD b/pcr/qwt-qt4/PKGBUILD
new file mode 100644
index 000000000..7d97f8832
--- /dev/null
+++ b/pcr/qwt-qt4/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer (Arch): Doug Newgard <scimmia at archlinux dot info>
+# Contributor (Arch): Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+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/"
+}