[arch-commits] Commit in mythes-de/repos/extra-any (PKGBUILD PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Tue Feb 28 17:47:55 UTC 2012


    Date: Tuesday, February 28, 2012 @ 12:47:55
  Author: andyrtr
Revision: 151619

archrelease: copy trunk to extra-any

Added:
  mythes-de/repos/extra-any/PKGBUILD
    (from rev 151618, mythes-de/trunk/PKGBUILD)
Deleted:
  mythes-de/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 49 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-28 17:47:29 UTC (rev 151618)
+++ PKGBUILD	2012-02-28 17:47:55 UTC (rev 151619)
@@ -1,39 +0,0 @@
-# $Id$
-# Maintainer: AndyRTR <andyrtr at archlinux.org>
-
-pkgname=mythes-de
-pkgver=20111216
-pkgrel=1
-pkgdesc="German thesaurus"
-arch=(any)
-url="http://www.openthesaurus.de/"
-license=('LGPL')
-optdepends=('libmythes: offers thesaurus library functions')
-source=(http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt)
-md5sums=('c8895a2f5412545a0c8b0186c5f613a7')
-
-build() {
-  /bin/true
-}
-
-package() {
-  cd "$srcdir"
-  install -dm755 ${pkgdir}/usr/share/mythes
-  cp -p th_de_DE_v2.* $pkgdir/usr/share/mythes
-
-  pushd $pkgdir/usr/share/mythes/
-  de_DE_aliases="de_AT de_BE de_CH de_LI de_LU"
-  for lang in $de_DE_aliases; do
-        ln -s th_de_DE_v2.idx "th_"$lang"_v2.idx"
-        ln -s th_de_DE_v2.dat "th_"$lang"_v2.dat"
-  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
-}

Copied: mythes-de/repos/extra-any/PKGBUILD (from rev 151618, mythes-de/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2012-02-28 17:47:55 UTC (rev 151619)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgname=mythes-de
+_date=20120228
+pkgver=${_date}
+pkgrel=1
+pkgdesc="German thesaurus"
+arch=(any)
+url="http://www.openthesaurus.de/"
+license=('LGPL')
+optdepends=('libmythes: offers thesaurus library functions')
+source=(#http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt - changes every day
+		ftp://ftp.archlinux.org/other/$pkgname/Deutscher-Thesaurus-${_date}.oxt
+		# alternative source with most times older snapshot
+        #http://extensions.libreoffice.org/extension-center/german-de-de-frami-dictionaries/releases/2011.06.03/dict-de_de-frami_2011-06-03.oxt
+)
+md5sums=('811ab3b7caaa1b3c9e2a965ebd7e164e')
+
+# source PKGBUILD && mksource
+mksource() {
+	mkdir /tmp/$pkgname-${_date}
+	pushd /tmp/$pkgname-${_date}
+	wget http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt
+	mv Deutscher-Thesaurus.oxt Deutscher-Thesaurus-${_date}.oxt
+	popd
+}
+
+package() {
+  cd "$srcdir"
+  install -dm755 ${pkgdir}/usr/share/mythes
+  cp -p th_de_DE_v2.* $pkgdir/usr/share/mythes
+
+  pushd $pkgdir/usr/share/mythes/
+  de_DE_aliases="de_AT de_BE de_CH de_LI de_LU"
+  for lang in $de_DE_aliases; do
+        ln -s th_de_DE_v2.idx "th_"$lang"_v2.idx"
+        ln -s th_de_DE_v2.dat "th_"$lang"_v2.dat"
+  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
+}




More information about the arch-commits mailing list