1 # Maintainer: Philip Belemezov <philip@belemezov>
6 pkgdesc="Bulgarian Dictionary (GTK2), with Debian patches"
8 url=http://gbgoffice.info/
9 license=('GPL2' 'unknown')
10 depends=('libsigc++' 'gtkmm')
11 source=($pkgname-$pkgver.tar.gz::"http://openfmi.net/frs/download.php/341/$pkgname-$pkgver.tar.gz"
12 full-pack.tar.bz2::'http://sourceforge.net/projects/bgoffice/files/Full%20Pack%20of%20Dictionaries/1.0/full-pack.tar.bz2/download'
15 08_fix_const_conversion.patch
16 09_deprecated_SigC.patch
17 10_workhelper-buttonbox.patch
22 'd747bc284f90317fcf4256891a9df381' # gbgoffice-1.4.tar.gz
23 '5211fcc86bda7b9a87255aa982d7b135' # full-pack.tar.bz2
24 'de1ad6394d99252a8bbc92cf0bc707cd' # 06_const-chars.patch
25 '89fc395e4f0f24f600e916ddc1316f03' # 07_gcc4.3.patch
26 '51be3d1399eb2005c5c1bc9bc76030b6' # 08_fix_const_conversion.patch
27 '6ad23df67f87d1c3b16cdd0a9a31383a' # 09_deprecated_SigC.patch
28 'd6516ce9cda7468f87d90f67d6ff2017' # 10_workhelper-buttonbox.patch
29 '2b7e148331dd0f2d1f7cca5635f9711b' # 11_dict_datadir.patch
30 'e3d4cc323a4060418ffb6518c3472334' # gbgoffice.desktop
34 cd "${srcdir}/${pkgname}-${pkgver}"
36 patch -p1 -i ../06_const-chars.patch
37 patch -p1 -i ../07_gcc4.3.patch
38 patch -p1 -i ../08_fix_const_conversion.patch
39 patch -p1 -i ../09_deprecated_SigC.patch
40 patch -p1 -i ../10_workhelper-buttonbox.patch
42 # Dictionaries are looked up in /usr/share/bgoffice by default
43 ./configure --prefix=/usr
47 mv full-pack "${pkgname}-${pkgver}-full-pack"
48 cd "${pkgname}-${pkgver}-full-pack"
49 patch -p1 -i ../11_dict_datadir.patch
53 cd "${srcdir}/${pkgname}-${pkgver}"
54 make DESTDIR="$pkgdir/" install || return 1
57 install -D -m 644 gbgoffice.desktop "$pkgdir/usr/share/applications/gbgoffice.desktop"
59 cd "${srcdir}/${pkgname}-${pkgver}-full-pack"
60 make DATA_DIR="$pkgdir/usr/share/bgoffice" install || return 1