From 61d59251fbc96c707bff3fc9bb86c83581fe526b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sat, 25 Mar 2023 09:20:23 -0300 Subject: [PATCH] Working on windows package. --- locale/pt_BR.po | 4 ++-- locale/pw3270.pot | 4 ++-- src/main/main.c | 35 ++++++++++++----------------------- src/main/tools.c | 35 ++++++++++++----------------------- win/makeruntime.sh.in | 22 ++++++++++++++++------ wine-run.sh | 18 ++++++++++++++---- 6 files changed, 58 insertions(+), 60 deletions(-) diff --git a/locale/pt_BR.po b/locale/pt_BR.po index 4d7e80c..e22dd79 100644 --- a/locale/pt_BR.po +++ b/locale/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-22 07:20-0300\n" +"POT-Creation-Date: 2023-03-25 08:48-0300\n" "PO-Revision-Date: 2023-01-31 11:14-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Brazilian Portuguese \n" @@ -474,7 +474,7 @@ msgstr "Altura do painel em linhas" msgid "Keypad width in columns" msgstr "Largura do painel em colunas" -#: src/main/builder.c:112 +#: src/main/builder.c:137 msgid "Keypads" msgstr "Painéis" diff --git a/locale/pw3270.pot b/locale/pw3270.pot index 1b1bf83..55567c6 100644 --- a/locale/pw3270.pot +++ b/locale/pw3270.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-22 07:20-0300\n" +"POT-Creation-Date: 2023-03-25 08:48-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -470,7 +470,7 @@ msgstr "" msgid "Keypad width in columns" msgstr "" -#: src/main/builder.c:112 +#: src/main/builder.c:137 msgid "Keypads" msgstr "" diff --git a/src/main/main.c b/src/main/main.c index 2e73ae8..33a9e35 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -1,31 +1,20 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ + /* - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob - * o nome G3270. - * * Copyright (C) <2008> * - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela - * Free Software Foundation. - * - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para - * obter mais detalhes. - * - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin - * St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Este programa está nomeado como main.c e possui - linhas de código. - * - * Contatos: + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ /** diff --git a/src/main/tools.c b/src/main/tools.c index 2a44ba7..e084e1d 100644 --- a/src/main/tools.c +++ b/src/main/tools.c @@ -1,31 +1,20 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ + /* - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob - * o nome G3270. - * * Copyright (C) <2008> * - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela - * Free Software Foundation. - * - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para - * obter mais detalhes. - * - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin - * St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Este programa está nomeado como main.c e possui - linhas de código. - * - * Contatos: + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ /** diff --git a/win/makeruntime.sh.in b/win/makeruntime.sh.in index ff1997e..d2a72e3 100755 --- a/win/makeruntime.sh.in +++ b/win/makeruntime.sh.in @@ -216,7 +216,7 @@ install_schemas() { fi } -install_theme() { +install_icons() { mkdir -p "${buildroot}${prefix}/etc" cp -rv "${prefix}/etc/gtk-3.0" "${buildroot}${prefix}/etc" @@ -244,15 +244,25 @@ install_theme() { exit -1 fi - #echo "${srcdir}/gtk.css" - #if [ -e "${srcdir}/gtk.css" ]; then - # cp "${srcdir}/gtk.css" "${TARGET}/share/themes/Default/gtk-3.0/gtk.css" - #fi + if [ -e "${srcdir}/win/gtk.css" ]; then + mkdir -p "${buildroot}${prefix}/share/themes/Default/gtk-3.0" + cp "${srcdir}/win/gtk.css" "${buildroot}${prefix}/share/themes/Default/gtk-3.0/gtk.css" + fi } +install_theme() { + cp -rv /usr/share/icons/${1} ${buildroot}${prefix}/share/icons + if [ "$?" != 0 ]; then + echo "Can´t copy ${1} icons" + exit -1 + fi +} + install_bin install_locale install_schemas -install_theme +install_icons +install_theme "Adwaita" + diff --git a/wine-run.sh b/wine-run.sh index 47dc93a..3f1ed15 100755 --- a/wine-run.sh +++ b/wine-run.sh @@ -1,9 +1,19 @@ #!/bin/bash -make Debug -make gschemas.compiled +make DESTDIR=${PWD}/.build install +if [ "$?" != "0" ]; then + exit -1 +fi + +bash ./win/makeruntime.sh +if [ "$?" != "0" ]; then + exit -1 +fi + +wine .build/usr/x86_64-w64-mingw32/sys-root/mingw/bin/pw3270.exe +if [ "$?" != "0" ]; then + exit -1 +fi -cp gschemas.compiled .bin/Debug -wine .bin/Debug/pw3270.exe -- libgit2 0.21.2