[arch-commits] Commit in mythes-nl/repos (community-any community-any/PKGBUILD)
Andrea Scarpino
andrea at archlinux.org
Sat Jan 24 10:26:58 UTC 2015
Date: Saturday, January 24, 2015 @ 11:26:58
Author: andrea
Revision: 126518
archrelease: copy trunk to community-any
Added:
mythes-nl/repos/community-any/
mythes-nl/repos/community-any/PKGBUILD
(from rev 126517, mythes-nl/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: mythes-nl/repos/community-any/PKGBUILD (from rev 126517, mythes-nl/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-01-24 10:26:58 UTC (rev 126518)
@@ -0,0 +1,44 @@
+# $Id$
+# Contributor: Jelle van der Waa <jelle vdwaa nl>
+
+pkgname=mythes-nl
+pkgver=20140818
+pkgrel=1
+pkgdesc="Dutch thesaurus"
+arch=('any')
+url="http://data.opentaal.org/opentaalbank/thesaurus/"
+license=('BSD' 'custom:Creative Commons, Attribution 3.0 Unported')
+optdepends=('libmythes: offers thesaurus library functions')
+source=("http://data.opentaal.org/opentaalbank/thesaurus/download/thes_nl.oxt")
+md5sums=('8b07a8beb0d5f837060806fe0b2a87cf')
+
+package() {
+ cd "${srcdir}"
+ install -dm755 "${pkgdir}"/usr/share/mythes
+ install -m644 th_nl_v2.dat "${pkgdir}/usr/share/mythes/th_nl_NL_v2.dat"
+ install -m644 th_nl_v2.idx "${pkgdir}/usr/share/mythes/th_nl_NL_v2.idx"
+
+ pushd "${pkgdir}/usr/share/mythes/"
+ nl_NL_aliases="nl_AW nl_BE"
+ for lang in $nl_NL_aliases; do
+ ln -s th_nl_NL_v2.dat "th_"$lang"_v2.dat"
+ ln -s th_nl_NL_v2.idx "th_"$lang"_v2.idx"
+ done
+ popd
+
+ # the symlinks
+ install -dm755 "${pkgdir}/usr/share/myspell/dicts"
+ pushd "${pkgdir}/usr/share/myspell/dicts"
+ for file in ${pkgdir}/usr/share/mythes/*; do
+ ln -sv /usr/share/mythes/$(basename $file) .
+ done
+ popd
+
+ # docs
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
+ install -m644 README_th_nl.txt "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # licences
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s ../../doc/${pkgname}/README_th_nl.txt $pkgdir/usr/share/licenses/$pkgname/README_th_nl.txt
+}
More information about the arch-commits
mailing list