summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2017-04-08 09:47:57 +0200
committerMichel Zou2017-04-08 09:47:57 +0200
commitc5326f862923f9e6d353c42aed72eca31fb9fec6 (patch)
tree502668af9385e007ce6fbfc42baefbedb37af0ef /PKGBUILD
downloadaur-c5326f862923f9e6d353c42aed72eca31fb9fec6.tar.gz
6.1.3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..717b2fa8dd4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=qwt-qt4
+pkgver=6.1.3
+pkgrel=1
+pkgdesc="Qt Widgets for Technical Applications (libqwt-qt4.so only)"
+arch=('i686' 'x86_64')
+url="http://qwt.sourceforge.net/"
+depends=('qt4')
+license=("custom:$pkgname")
+source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.bz2" \
+ "qwtconfig-archlinux.pri")
+sha1sums=('90ec21bc42f7fae270482e1a0df3bc79cb10e5c7'
+ '955f3702c5e8a847c545adf46745aade53626555')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # copy our config file to the right place
+ cp ${srcdir}/qwtconfig-archlinux.pri qwtconfig.pri
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # build qwt:
+ qmake-qt4 qwt.pro
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ install -d "${pkgdir}"/usr/lib/
+ install -m 755 lib/libqwt.so.${pkgver} "${pkgdir}"/usr/lib/libqwt-qt4.so.${pkgver}
+ ln -f -s libqwt-qt4.so.${pkgver} "${pkgdir}"/usr/lib/libqwt-qt4.so
+ ln -f -s libqwt-qt4.so.${pkgver} "${pkgdir}"/usr/lib/libqwt-qt4.so.6
+}