[arch-commits] Commit in qwtplot3d/trunk (PKGBUILD)
Ronald van Haren
ronald at archlinux.org
Fri Jul 15 09:11:00 UTC 2011
Date: Friday, July 15, 2011 @ 05:10:59
Author: ronald
Revision: 131787
upgpkg: qwtplot3d 0.2.7-2
qwt rebuild; cleanup PKGBUILD; install custom license
Modified:
qwtplot3d/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-07-15 06:47:13 UTC (rev 131786)
+++ PKGBUILD 2011-07-15 09:10:59 UTC (rev 131787)
@@ -3,40 +3,40 @@
pkgname=qwtplot3d
pkgver=0.2.7
-origver=0.2.7
pkgrel=2
pkgdesc="Qt/OpenGL-based C++ programming library containing 3d-widgets"
arch=("i686" "x86_64")
license=('custom:zlib')
url="http://qwtplot3d.sourceforge.net/"
-depends=('qt>=4.3' 'qwt>=5.0.2')
-source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$origver.tgz"
+depends=('qt' 'qwt' 'mesa')
+source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$pkgver.tgz"
qwtplot3d-gcc44.patch)
-md5sums=('2f14660152e2e26bfeaaeec479ed9f2b' '92ad261ed5344bc773cba05b324cfe74')
sha1sums=('4463fafb8420a91825e165da7a296aaabd70abea' '52fa169b651a98550f8a8391ddf52e0eaeb2c215')
build() {
- cd $startdir/src/$pkgname
- patch -p1 < ../qwtplot3d-gcc44.patch || return 1
- # . /etc/profile.d/qt3.sh
+ cd ${srcdir}/${pkgname}
+ patch -p1 < ../qwtplot3d-gcc44.patch
+
# build qwt:
qmake qwtplot3d.pro
- make || return 1
+ make
+}
+package() {
+ cd ${srcdir}/${pkgname}
+
# install qwtplot3d: (by hand, because the Makefile do not provide a "install:")
- mkdir -p $startdir/pkg/usr/{include/qwtplot3d,lib}
- # mkdir -p $startdir/pkg/usr/man/man3 .. no manpages yet
+ install -d ${pkgdir}/usr/{include/qwtplot3d,lib}
for n in include/* ; do
- cp -d $n $startdir/pkg/usr/include/qwtplot3d || return 1
+ cp -d $n ${pkgdir}/usr/include/qwtplot3d
done
for n in lib/libqwtplot3d.so* ; do
- cp -d $n $startdir/pkg/usr/lib || return 1
+ cp -d $n ${pkgdir}/usr/lib
done
- # for n in doc/man/man3/*.3 ; do
- # install -m 644 $n $startdir/pkg/usr/man/man3
- # done
+ # install custom license
+ install -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/qwtplot3d/LICENSE
}
More information about the arch-commits
mailing list