Mercurial > vanilla
comparison dev/intltool/intltool.sh @ 280:a09436ab4237
dev/intltool: initial import, closes #1081
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 22 Mar 2019 12:49:00 +0100 |
parents | |
children | d27efe5b1ea0 |
comparison
equal
deleted
inserted
replaced
279:d1e7ffc28819 | 280:a09436ab4237 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=intltool | |
19 PKGVERSION=0.51.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="GPLv2" | |
22 PKGSUMMARY="utility scripts for internationalizing XML" | |
23 PKGDOWNLOAD="https://launchpad.net/$PKGNAME/trunk/$PKGVERSION/+download/$PKGNAME-$PKGVERSION.tar.gz" | |
24 PKGDEPENDS="perl/perl-xml-parser" | |
25 | |
26 : ${CHOST:=$(uname -m)-linux-musl} | |
27 : ${CBUILD:=$(uname -m)-linux-musl} | |
28 : ${CC:=gcc} | |
29 : ${CFLAGS:=-O2} | |
30 : ${LDFLAGS:=} | |
31 : ${LIBS:=} | |
32 | |
33 build() | |
34 { | |
35 rm -rf $PKGNAME-$PKGVERSION | |
36 tar xvaf $PKGNAME-$PKGVERSION.tar.gz | |
37 pushd $PKGNAME-$PKGVERSION | |
38 | |
39 CC="$CC" \ | |
40 CFLAGS="$CFLAGS" \ | |
41 LDFLAGS="$LDFLAGS" \ | |
42 LIBS="$LIBS" \ | |
43 ./configure \ | |
44 --build=$CBUILD \ | |
45 --host=$CHOST \ | |
46 --prefix=/usr | |
47 make | |
48 make install DESTDIR=$DESTDIR | |
49 | |
50 popd | |
51 rm -rf $PKGNAME-$PKGVERSION | |
52 } |