[arch-commits] Commit in txt2tags/trunk (PKGBUILD)

Connor Behan cbehan at archlinux.org
Sun Dec 24 22:26:37 UTC 2017


    Date: Sunday, December 24, 2017 @ 22:26:36
  Author: cbehan
Revision: 275863

upgpkg: txt2tags 2.6-5

Rescue source

Modified:
  txt2tags/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-24 22:23:09 UTC (rev 275862)
+++ PKGBUILD	2017-12-24 22:26:36 UTC (rev 275863)
@@ -5,7 +5,7 @@
 
 pkgname=txt2tags
 pkgver=2.6
-pkgrel=4
+pkgrel=5
 pkgdesc='A text formatting and conversion tool.'
 arch=('any')
 url='http://www.txt2tags.org'
@@ -15,8 +15,8 @@
             'sh: for running html-update.sh'
             'vim: for using the vim-files')
 makedepends=('gettext')
-source=("http://txt2tags.googlecode.com/files/$pkgname-$pkgver.tgz")
-md5sums=('ac09fd624f1e3a553d5f0e01271cc0ee')
+source=("https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz")
+md5sums=('531e4ab3f0fb0a4dac5abb0605472109')
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
@@ -50,8 +50,9 @@
   
 	# handling man pages
   cd doc
-  for _lang in {"it","pt","fr","es","ca"}; do
-    install -Dm644 "manpage-${_lang}.man" "$pkgname.1-${_lang}"
+  for _file in `find . -name *.man | grep -v English`; do
+    _lang=${_file:${#_file}-6:2}
+    install -Dm644 "$_file" "$pkgname.1-${_lang}"
     if [[ ${_lang} == "pt" ]]; then
       cp "$pkgname.1-${_lang}" "$pkgdir/usr/share/man/pt_BR/man1/$pkgname.1"
     else
@@ -60,7 +61,7 @@
   done
   
 	# English man page
-  install -Dm644 manpage.man "$pkgdir/usr/share/man/man1/$pkgname.1"
+  install -Dm644 English/manpage.man "$pkgdir/usr/share/man/man1/$pkgname.1"
 
   # i18n
   cd ../po



More information about the arch-commits mailing list