qt/qtx11extras/qtx11extras.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 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1107
diff changeset
1 #!/bin/sh
926
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=qtx11extras
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=5.13.0
ee235d017998 qt/qtx11extras: initial import, closes #1511
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 LGPLv21"
926
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="Qt X11 extras module"
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="http://download.qt-project.org/official_releases/qt/${PKGVERSION%.*}/$PKGVERSION/submodules/$PKGNAME-everywhere-src-$PKGVERSION.tar.xz"
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 PKGDEPENDS="qtbase"
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 : ${CC:=clang}
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CFLAGS:=-O2}
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CXX:=clang++}
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CXXFLAGS:=-O2}
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
30
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 build()
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 {
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 rm -rf $PKGNAME-everywhere-src-$PKGVERSION
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 tar xvf $PKGNAME-everywhere-src-$PKGVERSION.tar.xz
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 cd $PKGNAME-everywhere-src-$PKGVERSION
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
36
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 mkdir build && cd build
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 QMAKE_CC="$CC" \
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 QMAKE_CFLAGS="$CFLAGS" \
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 QMAKE_CXX="$CXX" \
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 QMAKE_CXXFLAGS="$CXXFLAGS" \
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 qmake ..
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 make
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 make install INSTALL_ROOT=$DESTDIR
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 find $DESTDIR -type f -name "*.la" -delete
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 cd ..
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
47
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 cd ..
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 rm -rf $PKGNAME-everywhere-src-$PKGVERSION
ee235d017998 qt/qtx11extras: initial import, closes #1511
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 }

mercurial