summaryrefslogtreecommitdiff
path: root/community/stardict
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-08 01:01:51 -0800
committerroot <root@rshg054.dnsready.net>2013-01-08 01:01:51 -0800
commitc6944c224fa06987b04ffc1e90f5db0dfb200be9 (patch)
tree9660fefded7f8fd5e1ea1a47e60c13e80bbb7d25 /community/stardict
parent6691bda410e7b989932f459d788e7caa7bbd3a41 (diff)
Tue Jan 8 01:01:51 PST 2013
Diffstat (limited to 'community/stardict')
-rw-r--r--community/stardict/PKGBUILD85
1 files changed, 58 insertions, 27 deletions
diff --git a/community/stardict/PKGBUILD b/community/stardict/PKGBUILD
index 81843a581..542675e54 100644
--- a/community/stardict/PKGBUILD
+++ b/community/stardict/PKGBUILD
@@ -1,48 +1,79 @@
-# $Id: PKGBUILD 81945 2013-01-04 02:28:55Z fyan $
+# $Id: PKGBUILD 82064 2013-01-07 06:51:59Z 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 >
-pkgname=stardict
+pkgbase=stardict
+pkgname=(stardict stardict-lite)
pkgver=3.0.4
-pkgrel=1
-pkgdesc='International dictionary software'
+pkgrel=2
arch=('i686' 'x86_64')
url='http://www.stardict.org/'
license=('GPL')
-depends=('enchant' 'gtk2' 'libsigc++' 'libsm' 'espeak' 'libgnome')
-makedepends=('intltool' 'popt' 'gnome-doc-utils' 'gnome-common' 'libmysqlclient')
+makedepends=('intltool' 'popt' 'gnome-doc-utils' 'gnome-common' 'libmysqlclient' 'enchant' 'gtk2' 'libsigc++' 'libsm' 'espeak' 'libgnome')
options=('!libtool' '!emptydirs')
-source=("http://stardict-3.googlecode.com/files/stardict-${pkgver}.tar.bz2"
+source=("http://stardict-3.googlecode.com/files/${pkgbase}-${pkgver}.tar.bz2"
'gcc46.patch'
'glib2.patch'
'zlib.patch')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -p1 -i ../gcc46.patch
- patch -p1 -i ../glib2.patch
- patch -p1 -i ../zlib.patch
-
- ./configure \
- PKG_CONFIG=/usr/bin/pkg-config \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --disable-schemas-install \
- --disable-gucharmap \
- --disable-festival \
- --disable-updateinfo \
-
- make
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ patch -p1 -i ../gcc46.patch
+ patch -p1 -i ../glib2.patch
+ patch -p1 -i ../zlib.patch
+
+ cp -r "${srcdir}/${pkgbase}-${pkgver}" "${srcdir}/${pkgbase}-${pkgver}-lite"
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ ./configure \
+ PKG_CONFIG=/usr/bin/pkg-config \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --disable-schemas-install \
+ --disable-gucharmap \
+ --disable-festival \
+ --disable-updateinfo
+ make
+
+ cd "${srcdir}/${pkgbase}-${pkgver}-lite"
+ LDFLAGS="$LDFLAGS -lgmodule-2.0"
+ ./configure \
+ PKG_CONFIG=/usr/bin/pkg-config \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --disable-gnome-support \
+ --disable-schemas-install \
+ --disable-espeak \
+ --disable-gucharmap \
+ --disable-festival \
+ --disable-updateinfo
+ make
}
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
+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)
+ conflicts=(stardict)
+
+ cd "${srcdir}/${pkgbase}-${pkgver}-lite"
+ make DESTDIR="${pkgdir}" install
+}
+
md5sums=('0a9abf1936c43a3ee255802c75267f1a'
'52ff47441c503de07add4b7688510bc5'
'b2f216897c9053c7e4666c3d78705cf1'