summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD29
-rw-r--r--dict-freedict-eng-fra.install2
3 files changed, 28 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3721862236b..ede468fb5ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
pkgbase = dict-freedict-eng-fra
pkgdesc = English -> French dictionary for dictd et al. from Freedict.org
- pkgver = 0.1.5
+ pkgver = 0.1.6
pkgrel = 1
url = http://www.freedict.org/
install = dict-freedict-eng-fra.install
arch = any
license = GPL
+ makedepends = dictd
+ makedepends = freedict-tools
optdepends = dictd: dict client and server
- source = https://sourceforge.net/projects/freedict/files/eng-fra/0.1.5/freedict-eng-fra-0.1.5.tar.bz2
- sha512sums = f72eb5da576a3c8d459f2d39ed4adfa9442442293997319ce4558ad2cc6d2e4428d2b84567163961b338724990732dd98f6094768928c43da483f74183c7c99b
+ source = https://sourceforge.net/projects/freedict/files/eng-fra/0.1.6/freedict-eng-fra-0.1.6.src.tar.xz
+ sha512sums = 3ab092e1e5ded48e4bc066c0a8bb221c17904cdc0c30ead4f4b09c6b49cb8af39f2384131fe54055e59c4ceba875df414b255d6b80a2e5ab83bd72b319d91391
pkgname = dict-freedict-eng-fra
diff --git a/PKGBUILD b/PKGBUILD
index 50f88b8cd1b..7cd838540e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,35 @@
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
-# Contributor: Benjamin Vanderford <hazor_at_swrpg_dot_info
_lang=eng-fra
pkgname=dict-freedict-${_lang}
-pkgver=0.1.5
+pkgver=0.1.6
pkgrel=1
pkgdesc="English -> French dictionary for dictd et al. from Freedict.org"
arch=('any')
url="http://www.freedict.org/"
license=('GPL')
optdepends=('dictd: dict client and server')
-install=$pkgname.install
-source=("https://sourceforge.net/projects/freedict/files/${_lang}/$pkgver/freedict-${_lang}-$pkgver.tar.bz2")
-sha512sums=('f72eb5da576a3c8d459f2d39ed4adfa9442442293997319ce4558ad2cc6d2e4428d2b84567163961b338724990732dd98f6094768928c43da483f74183c7c99b')
+makedepends=('dictd' 'freedict-tools')
+install=${pkgname}.install
+source=("https://sourceforge.net/projects/freedict/files/${_lang}/${pkgver}/freedict-${_lang}-${pkgver}.src.tar.xz")
+sha512sums=('3ab092e1e5ded48e4bc066c0a8bb221c17904cdc0c30ead4f4b09c6b49cb8af39f2384131fe54055e59c4ceba875df414b255d6b80a2e5ab83bd72b319d91391')
+
+build()
+{
+ cd $_lang
+ make FREEDICT_TOOLS=/usr/lib/freedict-tools build-dictd
+}
package()
{
- mkdir -p "$pkgdir/usr/share/dictd"
- cp ${_lang}/${_lang}.{dict.dz,index} "$pkgdir/usr/share/dictd/"
+ install -m 755 -d "${pkgdir}/usr/share/dictd"
+ install -m 644 -t "${pkgdir}/usr/share/dictd/" \
+ ${_lang}/build/dictd/${_lang}.{dict.dz,index}
+
+ for file in ${_lang}/{AUTHORS,README,NEWS,ChangeLog}
+ do
+ if test -f ${file}
+ then
+ install -m 644 -Dt "${pkgdir}/usr/share/doc/freedict/${_lang}/" ${file}
+ fi
+ done
}
diff --git a/dict-freedict-eng-fra.install b/dict-freedict-eng-fra.install
index 321e6cd3ce3..d017c18b26a 100644
--- a/dict-freedict-eng-fra.install
+++ b/dict-freedict-eng-fra.install
@@ -1,5 +1,5 @@
-pkgname=dict-freedict-eng-fra
basename=eng-fra
+pkgname=dict-freedict-$basename
dictd_conf=/etc/dict/dictd.conf
datadir=/usr/share/dictd
conf="database $basename {