blob: 4bd06779c2c1f16e7cfe31ae043e5581e9824536 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $Id: PKGBUILD 113721 2014-06-28 18:11:12Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Neil Lin <neil@vip.url.com.tw>
# Contributor: Cravix < dr dot neemous at gmail dot com >
pkgbase=stardict
pkgname=(stardict stardict-lite)
pkgver=3.0.5
pkgrel=1
arch=('i686' 'x86_64')
url='http://www.stardict.org/'
license=('GPL')
makedepends=('intltool' 'popt' 'gnome-doc-utils' 'gnome-common' 'libmariadbclient' 'enchant' 'gtk2' 'libsigc++' 'libsm' 'espeak' 'libgnome')
options=('!emptydirs')
source=("http://downloads.sourceforge.net/project/stardict-4/$pkgver/$pkgbase-$pkgver.tar.bz2"
'gcc46.patch'
'glib2.patch')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
patch -p1 -i ../gcc46.patch
patch -p1 -i ../glib2.patch
cp -r "${srcdir}/${pkgbase}-${pkgver}" "${srcdir}/${pkgbase}-${pkgver}-lite"
cd "${srcdir}/${pkgbase}-${pkgver}"
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--disable-schemas-install \
--disable-gucharmap \
--disable-festival \
--disable-updateinfo
make
cd "${srcdir}/${pkgbase}-${pkgver}-lite"
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--disable-gnome-support \
--disable-schemas-install \
--disable-espeak \
--disable-gucharmap \
--disable-festival \
--disable-updateinfo
make
}
package_stardict() {
pkgdesc='International dictionary software'
depends=('enchant' 'gtk2' 'libsigc++' 'libsm' 'espeak' 'libgnome')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
package_stardict-lite() {
pkgdesc='International dictionary software - lite version without gnome and espeak support'
depends=('enchant' 'gtk2' 'libsigc++' 'libsm')
provides=("stardict=$pkgver")
conflicts=(stardict)
cd "${srcdir}/${pkgbase}-${pkgver}-lite"
make DESTDIR="${pkgdir}" install
}
md5sums=('e5fcf03cbf44d61c4e89ab3e7a70ec39'
'52ff47441c503de07add4b7688510bc5'
'b2f216897c9053c7e4666c3d78705cf1')
|