blob: 03de15aeee126d1898bb9d4656ab50b5d6e36ef5 (
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
|
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=stardict
pkgver=3.0.6
pkgrel=1
pkgdesc="Cross-platform and international dictionary software"
url="http://stardict-4.sourceforge.net/"
arch="all"
license="GPL"
depends="gtk+2.0 libsigc++ zlib"
makedepends="automake autoconf libtool gtk+2.0-dev libsigc++-dev libxml2-dev gnome-doc-utils
gnome-common enchant-dev espeak-dev zlib-dev mariadb-connector-c-dev gconf-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-help::noarch"
source="http://downloads.sourceforge.net/project/stardict-4/${pkgver}/${pkgname}-${pkgver}.tar.bz2
gcc46.patch
glib2.patch
mariadb.patch
"
options="!check"
prepare() {
cd "$builddir"
default_prepare
./autogen.sh
find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f
}
build() {
cd "$builddir"
export CXXFLAGS="$CXXLAGS -std=gnu++11"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-gnome-support \
--disable-dictdotcn \
--disable-gucharmap \
--disable-scrollkeeper \
--disable-festival \
--disable-updateinfo \
--disable-gpe-support \
--disable-schemas-install
make
}
check(){
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
help() {
pkgdesc="Stardict help files"
mkdir -p ${subpkgdir}/usr/share/stardict
mv ${pkgdir}/usr/share/gnome ${subpkgdir}/usr/share/
mv ${pkgdir}/usr/share/omf ${subpkgdir}/usr/share/
mv ${pkgdir}/usr/share/stardict/help ${subpkgdir}/usr/share/stardict/
}
sha512sums="81d93324b6e8954af7c20ea6d2a3054bb564d786a21b1cb541c728da7a18a6e7ddb23e595055ccc77e6866bbb8c89fb4f17023e33664761dbe1ee8cd55768658 stardict-3.0.6.tar.bz2
cc43b57cdf2e7fbd3e9c86acb4c8f9fef367d68f6f027e75774eec9cdf66b3fdd3b0bc58d373d076cb38671e09012ab69b8b7e81638a5be888af56372e65a838 gcc46.patch
4132eee58ab5dfb30105fd2c1a113d143528f7e904ededbb8de203bbb244377aed2c152aae7f383936e74005c2f4afa6128674a245d2a8083b2757b1ca90dd24 glib2.patch
4b47cd6beb425316cdbe45ec8b6b965521ba20a956fe6a39a49da0b5e774b3ff5bc8ade19aa03216d3405ec7fbee9ed37add0a7ec07c090a6872eb2ae2654db9 mariadb.patch"
|