blob: fba5e24003a07cef2012f5e9915047526747f45d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Description: Generateur de documents en plusieurs formats de sortie
# URL: http://txt2tags.sourceforge.net
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
name=txt2tags
version=2.6
release=1
source=(http://txt2tags.googlecode.com/files/$name-$version.tgz)
build() {
cd $name-$version
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/{man/man1,man/fr/man1,vim/syntax,doc/$name}
# bin
sed -i "s/env\ python/env\ python2/" txt2tags
install -m 755 txt2tags $PKG/usr/bin
install -m 755 extras/{t2tmake.rb,gensite,html-update.sh} $PKG/usr/bin
# vim
install -m 644 extras/*.vim $PKG/usr/share/vim/syntax
# page man
install -m 644 doc/manpage.man $PKG/usr/share/man/man1/txt2tags.1
install -m 644 doc/manpage-fr.man $PKG/usr/share/man/fr/man1/txt2tags.1
# doc
install -m 644 doc/{*.pdf,*.t2t} $PKG/usr/share/doc/$name
# locale fr
mkdir -p $PKG/usr/share/locale/fr/LC_MESSAGES/
cd po
msgfmt -o txt2tags.mo fr.po
install -m 644 txt2tags.mo $PKG/usr/share/locale/fr/LC_MESSAGES
}
|