Commit 2b25df68cb5765322e038aeb536d2958a4509d4f
1 parent
634b9523
Exists in
develop
Adding cross compiler bundle.
Showing
3 changed files
with
87 additions
and
3 deletions
Show diff stats
locale/pw3270.pot
@@ -8,7 +8,7 @@ msgid "" | @@ -8,7 +8,7 @@ msgid "" | ||
8 | msgstr "" | 8 | msgstr "" |
9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
11 | -"POT-Creation-Date: 2023-03-29 15:09-0300\n" | 11 | +"POT-Creation-Date: 2023-04-08 01:14-0300\n" |
12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
win/bundle.common
@@ -36,7 +36,9 @@ if [ -z ${MINGW_PREFIX} ]; then | @@ -36,7 +36,9 @@ if [ -z ${MINGW_PREFIX} ]; then | ||
36 | echo "Cant determine mingw prefix" | 36 | echo "Cant determine mingw prefix" |
37 | exit -1 | 37 | exit -1 |
38 | fi | 38 | fi |
39 | -else | 39 | +fi |
40 | + | ||
41 | +if [ -z ${PKG_CONFIG} ]; then | ||
40 | PKG_CONFIG=${MINGW_PREFX}/bin/pkg-config | 42 | PKG_CONFIG=${MINGW_PREFX}/bin/pkg-config |
41 | fi | 43 | fi |
42 | 44 | ||
@@ -45,7 +47,7 @@ GTK_BINARY_VERSION=$(${PKG_CONFIG} --variable=gtk_binary_version gtk+-3.0) | @@ -45,7 +47,7 @@ GTK_BINARY_VERSION=$(${PKG_CONFIG} --variable=gtk_binary_version gtk+-3.0) | ||
45 | GTK_LIBDIR=$(echo $(${PKG_CONFIG} --variable=libdir gtk+-3.0) | sed "s@^C:/@/c/@g") | 47 | GTK_LIBDIR=$(echo $(${PKG_CONFIG} --variable=libdir gtk+-3.0) | sed "s@^C:/@/c/@g") |
46 | GDK_LOADERS=$(echo $(${PKG_CONFIG} --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0) | sed -e "s@${GTK_PREFIX}@@g") | 48 | GDK_LOADERS=$(echo $(${PKG_CONFIG} --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0) | sed -e "s@${GTK_PREFIX}@@g") |
47 | 49 | ||
48 | -buildroot=.bin/bundle | 50 | +buildroot=$(readlink -f .bin/bundle) |
49 | bindir="${buildroot}${MINGW_PREFIX}/bin" | 51 | bindir="${buildroot}${MINGW_PREFIX}/bin" |
50 | 52 | ||
51 | if [ -z "${WIN_ROOT}" ]; then | 53 | if [ -z "${WIN_ROOT}" ]; then |
@@ -0,0 +1,82 @@ | @@ -0,0 +1,82 @@ | ||
1 | +#!/bin/bash | ||
2 | +# | ||
3 | +# SPDX-License-Identifier: LGPL-3.0-or-later | ||
4 | +# | ||
5 | +# Copyright (C) 2023 Perry Werneck <perry.werneck@gmail.com> | ||
6 | +# | ||
7 | +# This program is free software: you can redistribute it and/or modify | ||
8 | +# it under the terms of the GNU Lesser General Public License as published | ||
9 | +# by the Free Software Foundation, either version 3 of the License, or | ||
10 | +# (at your option) any later version. | ||
11 | +# | ||
12 | +# This program is distributed in the hope that it will be useful, | ||
13 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | +# GNU General Public License for more details. | ||
16 | +# | ||
17 | +# You should have received a copy of the GNU Lesser General Public License | ||
18 | +# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
19 | +# | ||
20 | + | ||
21 | +# | ||
22 | +# References: | ||
23 | +# | ||
24 | +# https://www.gtk.org/docs/installations/windows/ | ||
25 | +# http://drup.org/gtk-warning-error-loading-icon-couldnt-recognize-image-file-format | ||
26 | +# | ||
27 | + | ||
28 | +MINGW_PREFIX="/usr/x86_64-w64-mingw32/sys-root/mingw" | ||
29 | +PKG_CONFIG="/usr/bin/x86_64-w64-mingw32-pkg-config" | ||
30 | +MINGW_PACKAGE_PREFIX="mingw64" | ||
31 | + | ||
32 | +# Load bundle functions | ||
33 | +. "$(dirname $(readlink -f "${0}"))/bundle.common" | ||
34 | + | ||
35 | +prepare | ||
36 | + | ||
37 | +# Build | ||
38 | +make -C "${srcdir}" all | ||
39 | +if [ "$?" != "0" ]; then | ||
40 | + echo "Build failed" | ||
41 | + exit -1 | ||
42 | +fi | ||
43 | + | ||
44 | +make -C "${srcdir}" "DESTDIR=${buildroot}" install | ||
45 | +if [ "$?" != "0" ]; then | ||
46 | + echo "Install failed" | ||
47 | + exit -1 | ||
48 | +fi | ||
49 | + | ||
50 | +# Install pre-build packages | ||
51 | +packages="lib3270 libv3270" | ||
52 | +for package in ${packages} | ||
53 | +do | ||
54 | + PACKAGE_NAME=$(rpm -qa | grep "${MINGW_PACKAGE_PREFIX}-${package}" | grep -v devel) | ||
55 | + echo "Unpacking ${PACKAGE_NAME}" | ||
56 | + for FILE in $(rpm -ql "${PACKAGE_NAME}") | ||
57 | + do | ||
58 | + if [ ! -d ${FILE} ]; then | ||
59 | + | ||
60 | + FILEPATH="${buildroot}${FILE}" | ||
61 | + mkdir -p "$(dirname ${FILEPATH})" | ||
62 | + if [ "$?" != "0" ]; then | ||
63 | + exit -1 | ||
64 | + fi | ||
65 | + | ||
66 | + cp "${FILE}" "${FILEPATH}" | ||
67 | + if [ "$?" != "0" ]; then | ||
68 | + exit -1 | ||
69 | + fi | ||
70 | + fi | ||
71 | + done | ||
72 | + | ||
73 | +done | ||
74 | + | ||
75 | +install_loaders | ||
76 | +install_bin | ||
77 | +install_locale | ||
78 | +install_schemas | ||
79 | +install_theme "Adwaita" | ||
80 | +install_icons "Adwaita" | ||
81 | + | ||
82 | + |