misc/itstool/itstool.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1107
7791d3dbfecf
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1019
ddab65a5b3f5 vanilla: use /bin/busybox sh as default shell
David Demelier <markand@malikania.fr>
parents: 902
diff changeset
1 #!/bin/busybox sh
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=itstool
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=2.0.5
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
1107
7791d3dbfecf vanilla: consolidate licenses and many options
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
21 PKGLICENSE="GPLv30+"
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="translate XML documents with PO files"
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="http://files.itstool.org/$PKGNAME/$PKGNAME-$PKGVERSION.tar.bz2"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 657
diff changeset
24 PKGDEPENDS="libxml2 python"
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 build()
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 {
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
29 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
30 cd $PKGNAME-$PKGVERSION
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
31
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 ./configure \
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 --build=$CBUILD \
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 --host=$CHOST \
549
bad483aace64 vanilla: use prefix= instead
David Demelier <markand@malikania.fr>
parents: 532
diff changeset
35 --prefix=
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 make
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 make install DESTDIR=$DESTDIR
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
39 cd ..
359
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 rm -rf $PKGNAME-$PKGVERSION
abdcb45c3187 misc/itstool: initial import, closes #1476
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 }

mercurial