desktop/qwtplot3d/PKGBUILD
2015-02-28 17:55:44 +00:00

43 lines
1.1 KiB
Bash

# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: damir <damir@archlinux.org>
pkgname=qwtplot3d
pkgver=0.2.7
pkgrel=6
pkgdesc="Qt/OpenGL-based C++ programming library containing 3d-widgets"
arch=('x86_64')
license=('custom:zlib')
url="http://qwtplot3d.sourceforge.net/"
depends=('qt' 'qwt' 'mesa' 'glu')
source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$pkgver.tgz"
"qwtplot3d_patches.patch")
sha1sums=('4463fafb8420a91825e165da7a296aaabd70abea'
'635992f071d6e38e081e84db1d001331d7e0a99c')
build() {
cd ${srcdir}/${pkgname}
patch -p1 < ../qwtplot3d_patches.patch
# build qwt:
qmake qwtplot3d.pro
make
}
package() {
cd ${srcdir}/${pkgname}
# install qwtplot3d: (by hand, because the Makefile do not provide a "install:")
install -d ${pkgdir}/usr/{include/qwtplot3d,lib}
for n in include/* ; do
cp -d $n ${pkgdir}/usr/include/qwtplot3d
done
for n in lib/libqwtplot3d.so* ; do
cp -d $n ${pkgdir}/usr/lib
done
# install custom license
install -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/qwtplot3d/LICENSE
}