Date: Thursday, August 22, 2013 @ 13:50:19 Author: jelle Revision: 96236
upgpkg: qstardict 1.0.1-2 fix FS#32806 Modified: qstardict/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-08-22 08:59:22 UTC (rev 96235) +++ PKGBUILD 2013-08-22 11:50:19 UTC (rev 96236) @@ -2,15 +2,15 @@ # Maintainer: Jaroslav Lichtblau <dragonl...@aur.archlinux.org> # Contributor: Alois Nespor <alois.nes...@gmail.com> -pkgname=qstardict +#pkgbase=qstardict +pkgname=('qstardict' 'kdeplasma-applets-qstardict') pkgver=1.0.1 pkgrel=2 -pkgdesc="Qt4 clone of StarDict with full support of StarDict dictionaries" +depends=('qt4') +makedepends=('cmake' 'automoc4' 'kdelibs') arch=('i686' 'x86_64') url="http://qstardict.ylsoftware.com/index.php" license=('GPL2') -depends=('qt4') -provides=('stardict') changelog=$pkgname.changelog source=(http://qstardict.ylsoftware.com/files/$pkgname-$pkgver.tar.bz2) sha256sums=('b778ace65a22e5b9724d687ad90c77ec98feb2671774f73cd51725ec7b59e62f') @@ -19,12 +19,30 @@ cd "${srcdir}/$pkgname-$pkgver" sed -i -e 's|glib/gmem.h|glib.h|' -e 's|glib/gstrfuncs.h|glib.h|' plugins/stardict/stardict.cpp - qmake ENABLED_PLUGINS="stardict web swac" + qmake-qt4 ENABLED_PLUGINS="stardict web swac" make + + + cd "${srcdir}/$pkgname-$pkgver/kdeplasma" + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr + make } -package() { +package_qstardict() { +pkgdesc="Qt4 clone of StarDict with full support of StarDict dictionaries" +provides=('stardict') cd "${srcdir}/$pkgname-$pkgver" make INSTALL_ROOT="${pkgdir}" install } + +package_kdeplasma-applets-qstardict(){ +pkgdesc="Qt4 clone of StarDict with full support of StarDict dictionaries" +depends=('kdelibs' 'qt4' 'qstardict') + cd "${srcdir}/qstardict-$pkgver/kdeplasma/build" + + make DESTDIR=${pkgdir} install +} +