summaryrefslogtreecommitdiff
path: root/community/qstardict/PKGBUILD
blob: 79fce59b22a7a313d5c67266cfcc0c0b5eaf51e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 96239 2013-08-22 12:10:16Z jelle $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Alois Nespor <alois.nespor@gmail.com>

#pkgbase=qstardict
pkgname=('qstardict' 'kdeplasma-applets-qstardict')
pkgver=1.0.1
pkgrel=3
depends=('qt4')
makedepends=('cmake' 'automoc4' 'kdelibs')
arch=('i686' 'x86_64')
url="http://qstardict.ylsoftware.com/index.php"
license=('GPL2')
changelog=$pkgname.changelog
source=(http://qstardict.ylsoftware.com/files/$pkgname-$pkgver.tar.bz2)
sha256sums=('b778ace65a22e5b9724d687ad90c77ec98feb2671774f73cd51725ec7b59e62f')

build() {
  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-qt4 ENABLED_PLUGINS="stardict web swac"
  make


  cd "${srcdir}/$pkgname-$pkgver/kdeplasma"
  mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

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
}