aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stardict/APKBUILD
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2017-04-13 15:21:05 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-20 13:50:48 +0000
commitf3fd88b88366b0d50635497bd1dee792223b34f7 (patch)
tree581f79ce6e196e3483ac624c12f3e74dc7f06864 /testing/stardict/APKBUILD
parentb73b69eebd210143f39da44eb1dda6f3a7654918 (diff)
downloadaports-f3fd88b88366b0d50635497bd1dee792223b34f7.tar.gz
aports-f3fd88b88366b0d50635497bd1dee792223b34f7.tar.bz2
aports-f3fd88b88366b0d50635497bd1dee792223b34f7.tar.xz
testing/stardict: new aport
Diffstat (limited to 'testing/stardict/APKBUILD')
-rw-r--r--testing/stardict/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/stardict/APKBUILD b/testing/stardict/APKBUILD
new file mode 100644
index 0000000000..3775a8a742
--- /dev/null
+++ b/testing/stardict/APKBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=stardict
+pkgver=3.0.6
+pkgrel=0
+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-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"
+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"