summaryrefslogtreecommitdiff
path: root/community/qstardict/PKGBUILD
blob: c6eaa15a22e69f35a866cca522571aca56e7a9f4 (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
# $Id: PKGBUILD 85395 2013-03-01 10:38:40Z andrea $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Alois Nespor <alois.nespor@gmail.com>

pkgname=qstardict
pkgver=1.0.1
pkgrel=2
pkgdesc="Qt4 clone of StarDict with full support of StarDict dictionaries"
arch=('i686' 'x86_64' 'mips64el')
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
	qstardict-1.0.1-glib.patch)
sha256sums=('b778ace65a22e5b9724d687ad90c77ec98feb2671774f73cd51725ec7b59e62f'
	    '30878282698dc90bf615ca383f4c01357ce49dfcdddd12c2e0b113ee51822c57')

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 ENABLED_PLUGINS="stardict web swac"
  make
}

package() {
  cd "${srcdir}/$pkgname-$pkgver"

  make INSTALL_ROOT="${pkgdir}" install
}