Date: Friday, December 20, 2019 @ 17:23:58 Author: cbehan Revision: 538546
upgpkg: txt2tags 3.3-1 Switch to maintained fork which is missing some features but supports Python 3 Modified: txt2tags/trunk/PKGBUILD ----------+ PKGBUILD | 66 +++++++++---------------------------------------------------- 1 file changed, 10 insertions(+), 56 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-12-20 17:08:58 UTC (rev 538545) +++ PKGBUILD 2019-12-20 17:23:58 UTC (rev 538546) @@ -4,70 +4,24 @@ # Contributor: Stefan Husmann <stefan-husm...@t-online.de> pkgname=txt2tags -pkgver=2.6 -pkgrel=6 +pkgver=3.3 +pkgrel=1 pkgdesc='A text formatting and conversion tool.' arch=('any') -url='https://www.txt2tags.org' +url='http://www.txt2tags.org' license=('GPL') -depends=('python2') -optdepends=('ruby: for running t2tmake.rb' - 'sh: for running html-update.sh' - 'vim: for using the vim-files') -makedepends=('gettext') -source=("https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz") -md5sums=('531e4ab3f0fb0a4dac5abb0605472109') +depends=('python') +makedepends=('python-setuptools') +md5sums=('3261d1d6e185a8159212970c2a8e617d') +source=("https://github.com/jendrikseipp/$pkgname/archive/$pkgver.tar.gz") build() { cd "$srcdir/$pkgname-$pkgver" - - # python2 fix - for f in txt2tags extras/gensite; do - sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$f" - done + python setup.py build } package() { cd "$srcdir/$pkgname-$pkgver" + python setup.py install --root="$pkgdir" +} - install -d "$pkgdir/usr/share/vim/vimfiles"/{plugin,syntax,compiler,macros} - install -d "$pkgdir/usr/share/man"/{it,pt_BR,fr,es,ca}/man1 - install -d "$pkgdir/usr/share/man/man1" - - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" - install -Dm644 extras/pagemaker.vim "$pkgdir/usr/share/vim/vimfiles/syntax/pagemaker.vim" - install -Dm644 "extras/$pkgname.vim" "$pkgdir/usr/share/vim/vimfiles/syntax/$pkgname.vim" - install -Dm644 extras/gvim-menu.vim \ - "$pkgdir/usr/share/vim/vimfiles/plugin/$pkgname-gvim-menu.vim" - install -Dm644 "extras/$pkgname-compiler.vim" \ - "$pkgdir/usr/share/vim/vimfiles/compiler/$pkgname-compiler.vim" - install -Dm644 extras/unhtml.vim \ - "$pkgdir/usr/share/vim/vimfiles/macros/unhtml.vim" - - # installing other extra tools - install -m755 extras/{t2tmake.rb,gensite,html-update.sh,dynartslides} "$pkgdir/usr/bin" - install -Dm644 extras/txt2tags-mode.el "$pkgdir/usr/share/emacs/site-lisp/txt2tags-mode.el" - - # handling man pages - cd doc - 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 - install -Dm644 "$pkgname.1-${_lang}" "$pkgdir/usr/share/man/${_lang}/man1/$pkgname.1" - fi - done - - # English man page - install -Dm644 English/manpage.man "$pkgdir/usr/share/man/man1/$pkgname.1" - - # i18n - cd ../po - for _i in *.po - do - msgfmt -o "${_i%.po}.mo" "${_i}" - install -Dm644 "${_i%.po}.mo" "$pkgdir/usr/share/locale/${_i%.po}/LC_MESSAGES/$pkgname.mo" - done -}