summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDoug Newgard2017-04-20 19:11:36 -0500
committerDoug Newgard2017-04-20 19:11:36 -0500
commit174e5bfbdcf5d7648ca5b61bc213e8acb1e2c50b (patch)
treef6de4b69c8c56b35ea2519e94391b04f97b85884 /PKGBUILD
parentcde2e91fe73b3538f82dd7d413ffcb72a7aa4efb (diff)
downloadaur-174e5bfbdcf5d7648ca5b61bc213e8acb1e2c50b.tar.gz
Initial PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 26 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b7bf3dc221e..0509ecf7cc2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,43 @@
+# Maintainer: 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 (libqwt-qt4.so only)"
+pkgdesc='Qt Widgets for Technical Applications - Qt4 version'
arch=('i686' 'x86_64')
-url="http://qwt.sourceforge.net/"
-depends=('qt4')
-license=("custom:$pkgname")
-source=("http://downloads.sourceforge.net/qwt/qwt-$pkgver.tar.bz2"
- "qwtconfig-archlinux.pri")
-sha1sums=('90ec21bc42f7fae270482e1a0df3bc79cb10e5c7'
- '955f3702c5e8a847c545adf46745aade53626555')
+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 ${srcdir}/qwt-${pkgver}
+ 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
- # copy our config file to the right place
- cp ${srcdir}/qwtconfig-archlinux.pri qwtconfig.pri
+ sed -i '/^\s*\(LIBRARY_NAME\|LIB_NAME\)/ s/$/-qt4/' qwtfunctions.pri
}
build() {
- cd ${srcdir}/qwt-${pkgver}
+ cd $_pkgname-$pkgver
- # build qwt:
qmake-qt4 qwt.pro
+
make
}
package() {
- cd ${srcdir}/qwt-${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
+ cd $_pkgname-$pkgver
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
}