summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authordasbaumwolltier2019-03-08 16:16:44 +0100
committerdasbaumwolltier2019-03-08 16:16:44 +0100
commitd1e2e5cb3ecc1bd97d66fa3cd85089b670ccd36e (patch)
tree121c92a396ce6a5e2b252d7b81967139657dc2fc /PKGBUILD
downloadaur-d1e2e5cb3ecc1bd97d66fa3cd85089b670ccd36e.tar.gz
Created repo, PKGBUILD and install file
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1615311c26b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Gabriel Guldner <gabriel at guldner . eu>
+_lang=deu-swe
+_pkgname=dict-freedict-${_lang}
+pkgname=${_pkgname}-bin
+pkgver=2018.09.13
+pkgrel=1
+pkgdesc="German -> Swedish dictionary for dictd et al. from Freedict.org"
+arch=('any')
+url="https://freedict.org/"
+license=('CCPL:by-sa' 'FDL')
+optdepends=('dictd: dict client and server')
+provides=(${_pkgname})
+conflicts=(${_pkgname})
+install=${pkgname}.install
+source=("https://download.freedict.org/dictionaries/${_lang}/${pkgver}/freedict-${_lang}-${pkgver}.dictd.tar.xz")
+sha256sums=('4de34d93c3510b2f774900f04c4f55d4aa6ba1f8de572dd8b01607930072d0ca')
+
+package()
+{
+ install -m 755 -d "${pkgdir}/usr/share/dictd"
+ install -m 644 -t "${pkgdir}/usr/share/dictd/" \
+ ${_lang}/${_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
+}