summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-02-14 09:14:27 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-02-14 09:14:27 -0500
commited1ef54ff018269c8b61cfe8618ebea9566a11b7 (patch)
treedb6fa09916f0761d9aa12bbecf2e07a72889a541
parente1c76de2742727d4ce8f91fa430e91caabc4ec40 (diff)
downloadabslibre-ed1ef54ff018269c8b61cfe8618ebea9566a11b7.tar.gz
abslibre-ed1ef54ff018269c8b61cfe8618ebea9566a11b7.tar.bz2
abslibre-ed1ef54ff018269c8b61cfe8618ebea9566a11b7.zip
qwtpolar-1.1.1-1: updating version
-rw-r--r--pcr/qwtpolar/PKGBUILD63
1 files changed, 30 insertions, 33 deletions
diff --git a/pcr/qwtpolar/PKGBUILD b/pcr/qwtpolar/PKGBUILD
index 92427ed00..0e79886f1 100644
--- a/pcr/qwtpolar/PKGBUILD
+++ b/pcr/qwtpolar/PKGBUILD
@@ -1,48 +1,45 @@
-# Maintainer (Arch): SaultDon <sault.don gmail>
+# Maintainer (Arch): Doug Newgard <scimmia at archlinux dot info>
+# Contributor (Arch): SaultDon <sault.don gmail>
# Contributor (Arch): Gunther Schulz < mail at guntherschulz.de >
# Contributor (Arch): Kévin Guilloy <kevin at guilloy dot ath dot cx>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
pkgname=qwtpolar
-_pkgver=1.1
-pkgver=1.1.r182
-pkgrel=6.1
-pkgdesc="A Qwt library that contains classes for displaying values on a polar coordinate system."
+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 License, Version 1.0')
-depends=('qt4>=4.8.5'
- 'qwt>=6.1.0')
-makedepends=('subversion')
-provides=("$pkgname=$pkgver")
-conflicts=('qwtpolar'
- 'qwtpolar-svn'
- 'qwtpolar-svn-qt4')
-source=("qwtpolar::svn+https://svn.code.sf.net/p/qwtpolar/code/branches/qwtpolar-${_pkgver}")
-md5sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
- local ver="$(svnversion)"
- printf "%s.r%s" "${_pkgver}" "${ver//[[:alpha:]]}"
+url='http://qwtpolar.sourceforge.net/'
+license=('custom:qwt')
+depends=('gcc-libs' 'glibc' 'qt4' 'qwt')
+source=("http://sourceforge.net/projects/qwtpolar/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2")
+sha1sums=('38edf5220c971eef0e88fcc6db7c718e6198ccac')
+
+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 "$srcdir/$pkgname"
-
- sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/doc/\/usr\/share\/doc\/qwt\//' qwtpolarconfig.pri
- sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//' qwtpolarconfig.pri
- sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/lib/\/usr\/lib\//' qwtpolarconfig.pri
- sed -i -e 's/$${QWT_POLAR_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/features\//' qwtpolarconfig.pri
- sed -i -e 's/^.*QwtPolarDesigner//' qwtpolarconfig.pri
- sed -i -e 's/^.*QwtPolarExamples//' qwtpolarconfig.pri
- echo "INCLUDEPATH += /usr/include" >> qwtpolarbuild.pri
+ cd $pkgname-$pkgver
qmake-qt4 qwtpolar.pro
make
}
package() {
- cd "$srcdir/$pkgname"
+ cd $pkgname-$pkgver
+
+ make INSTALL_ROOT="$pkgdir" install
- make INSTALL_ROOT="${pkgdir}"/ install
-} \ No newline at end of file
+ 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"
+}