From dd875597e6d0b34527b06156aeb707f7ffe64422 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 16 Aug 2017 11:17:03 +0200 Subject: qwtpolar -> qwtpolar-qt4 --- qwtpolar-qt4/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ qwtpolar/PKGBUILD | 45 --------------------------------------------- 2 files changed, 47 insertions(+), 45 deletions(-) create mode 100644 qwtpolar-qt4/PKGBUILD delete mode 100644 qwtpolar/PKGBUILD diff --git a/qwtpolar-qt4/PKGBUILD b/qwtpolar-qt4/PKGBUILD new file mode 100644 index 000000000..b2c5f16cd --- /dev/null +++ b/qwtpolar-qt4/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Erich Eckner +# Contributor: Doug Newgard +# Contributor: SaultDon +# Contributor: Gunther Schulz < mail at guntherschulz.de > +# Contributor: Kévin Guilloy + +pkgname=qwtpolar-qt4 +_pkgname=qwtpolar +pkgver=1.1.1 +pkgrel=1 +pkgdesc='Qwt library that contains classes for displaying values on a polar coordinate system - Qt4 version' +arch=('i686' 'x86_64') +url='http://qwtpolar.sourceforge.net/' +license=('custom') +depends=('qt4' 'qwt-qt4') +source=("https://sourceforge.net/projects/qwtpolar/files/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.bz2") +sha512sums=('5b752e5426ae15740737277c2ba244cab947c54d573b4eedd1f54359b6eab1fa738d40f68f6c806106d01596eabc9f6d7ee825dde11a4925bebd643f42021621') + +prepare() { + cd $_pkgname-$pkgver + + sed -e '/^\s*QWT_POLAR_INSTALL_PREFIX/ s|=.*|= /usr|' \ + -e '/^QWT_POLAR_INSTALL_DOCS/ s|^|#|' \ + -e '/^QWT_POLAR_INSTALL_HEADERS/ s|include|&/qwt-qt4|' \ + -e '/^QWT_POLAR_INSTALL_PLUGINS/ s|plugins/designer|lib/qt4/&|' \ + -e '/^QWT_POLAR_INSTALL_FEATURES/ s|features|share/qt4/mkspecs/&|' \ + -e '/QwtPolarExamples/ s/^/#/' \ + -i qwtpolarconfig.pri + + sed -i '/^\s*\(LIBRARY_NAME\|LIB_NAME\)/ s/$/-qt4/' qwtpolarfunctions.pri +} + +build() { + cd $_pkgname-$pkgver + + qmake-qt4 qwtpolar.pro + + make +} + +package() { + cd $_pkgname-$pkgver + + make INSTALL_ROOT="$pkgdir" install + + install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" +} diff --git a/qwtpolar/PKGBUILD b/qwtpolar/PKGBUILD deleted file mode 100644 index 25f12deb7..000000000 --- a/qwtpolar/PKGBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Maintainer: Erich Eckner -# Contributor: Doug Newgard -# Contributor: SaultDon -# Contributor: Gunther Schulz < mail at guntherschulz.de > -# Contributor: Kévin Guilloy - -pkgname=qwtpolar -pkgver=1.1.1 -pkgrel=1 -pkgdesc='Qwt library that contains classes for displaying values on a polar coordinate system' -arch=('i686' 'x86_64') -url='http://qwtpolar.sourceforge.net/' -license=('custom:qwt') -depends=('qt4' 'qwt') -source=("http://sourceforge.net/projects/qwtpolar/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2") -sha512sums=('5b752e5426ae15740737277c2ba244cab947c54d573b4eedd1f54359b6eab1fa738d40f68f6c806106d01596eabc9f6d7ee825dde11a4925bebd643f42021621') - -prepare() { - cd $pkgname-$pkgver - - sed -e '/^\s*QWT_POLAR_INSTALL_PREFIX/ s|=.*|= /usr|' \ - -e '/^QWT_POLAR_INSTALL_DOCS/ s|/doc|/share/doc/qwtpolar|' \ - -e '/^QWT_POLAR_INSTALL_HEADERS/ s|/include|/include/qwt|' \ - -e '/^QWT_POLAR_INSTALL_FEATURES/ s|/features|/share/qt4/mkspecs/features|' \ - -e '/^QWT_POLAR_INSTALL_PLUGINS/ s|/plugins|/lib/qt4/plugins|' \ - -e '/QwtPolarExamples/ s/^/# /' \ - -i qwtpolarconfig.pri -} - -build() { - cd $pkgname-$pkgver - - qmake-qt4 qwtpolar.pro - make -} - -package() { - cd $pkgname-$pkgver - - make INSTALL_ROOT="$pkgdir" install - - install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" - mv "$pkgdir/usr/share/doc/qwtpolar/man/" "$pkgdir/usr/share/" - rm "$pkgdir/usr/share/man/man3/qwtlicense.3" -} -- cgit v1.2.3-70-g09d2