blob: 9fd315441b45b2f20f7425aab4a38137f32630ef (
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
34
|
# Description: Generateur de documents en plusieurs formats de sortie
# URL: http://txt2tags.sourceforge.net
# Maintainer: NuTyX core team
# Packager: fred.galusik at gmail dot com
# Depends on: python
# Run on:
name=txt2tags
version=2.5
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
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
}
|