diff --git a/README b/README index 55d74452..0fc7e72d 100644 --- a/README +++ b/README @@ -1,205 +1,205 @@ This is gpg4win - the GUI Installer Builder for W32. See also the file doc/README.en.txt. For MSI Package instructions see src/README-msi.txt. Instructions: ============= 1. Download the source and binary packages that are required to build the installer: $ cd packages $ sh download.sh [...] $ cd .. 2. Generate config files $ ./autogen.sh 3. Configure the source tree for cross compilation: $ ./autogen.sh --build-w32 4. Build the installer: $ make The installer will be made available under src/installers: src/installers/gpg4win-X.Y.Z.exe Instructions for AppImage: ========================== 1. Download the source and binary packages that are required to build the installer: $ cd packages $ sh download.sh [...] $ cd .. 2. Generate config files $ ./autogen.sh 3. Build the Docker image that will be used for creating the AppImage: $ docker/build-appimage-docker-image.sh 4. Build the AppImage using the Docker image: $ docker/run-appimage-build.sh Basic requirements ================== A decent POSIX system is required for building this software as well as GNU make. We are using Debian GNU/Linux 10 (buster), any other POSIX system should work as well but you may run into problems due to different toolchain versions. For MSI Packages you will additionally need the dependencies mentioned in src/README-msi.txt To satisfy all needs of configure at least the following packages need to be installed: build-essential autoconf automake mingw-w64 mingw-w64-i686-dev \ mingw-w64-x86-64-dev nsis stow unzip icoutils texlive \ libglib2.0-dev gettext docbook-utils ghostscript \ texinfo libgdk-pixbuf2.0-dev texlive-latex-extra libqt4-dev-bin \ wget mingw-w64 texlive-lang-german cmake libgtk2.0-bin libxml2-utils \ gperf libgettextpo-dev automake-1.15 libkf5config-dev libkf5config-dev-bin \ libkf5coreaddons-dev gpgrt-tools imagemagick Building the Webpages ===================== The website is in the dedicated branch "website" in the git reposity. Checkout that branch and read the instructions: git checkout website Development Branches ==================== The old version of gpg4win (version < 1.2) is since 1.1.3 tracked by the GIT branch: gpg4win-1-branch. Only important fixes will go into this version. The current version in the GIT master starts as version 1.9. Adding new packages to the installer: ===================================== This requires editing a couple of files; we might eventually automate some of these tasks. Here is a short run up: 1. Add constants for the package FOO into src/config.nsi.in . 2. Create 2 new installer scripts, named src/inst-foo.nsi and uninst-foo.nsi and add them to EXTRA_DIST in src/Makefile.am. 3. Add foo to one the variables gpg4win_bpgks (if foo should not be build be the gpg4win) or gpg4win_spkgs (if foo should be build by gpg4win) in src/Makefile.am . Also add any required configure flags etc. 4. Add FOO to src/inst-sections.nsi. 5. Add detection of packages to configure.ac. Check out the available macros in m4/gpg4win.m4. Depending on the way an upstream package is packaged, you might need to write a new macro. 6. Add download information to packages/download.sh. 7. If the package ships pkg-config (*.pc) support files, you need add post install instructions to Makefile.am. Note that *.pc files may be in the "runtime" directory ${pkgidir} if the package is built within gpg4win (or peculiarly shipped), or in the development package ${pkgidir_dev}. 8. Add the installed files to the mkportable headers. Then run the usual "./autogen.sh" to create the actual configure file and run configure as described above. Kleopatra Locatization ====================== -The kde-l10n package is generated with the script src/kde-l10n.sh +The kde-l10n package is generated with the script packages/gen-kde-l10n.sh execute it after a build to generate an updated l10n package which you can then upload and add to packages.common. The tarballs and the nsis scripts are located in the temp directory kde-l10n prints as output. Installer Slideshow =================== During installation we are showing a slide show. If you want to change the contents shown add / modify files in the src/slideshow subfolder. Install them in inst-gpg4win.nsi (Add them to the list of files before g4wihelp::slide_show) and modify src/slideshow/slides.dat accordingly. Version numbers =============== We use a specific order of version numbers. This is best shown by an example: 2.1.1 - The final 2.1.1 release. 2.1.1-beta88 - A snapshot before the 2.1.1 release. (The 88 in this example is the number of commits since the last release). The important point is that we bump up the version number before we do an release and append a suffix to mark it as a development version. This allows other software to use a configure check for the next to be released version of gpg4win. Copyright ========= The entire Gpg4win package is Copyright (C) 2005, 2006, 2007, 2008, 2009, 2012, 2013 g10 Code GmbH GPG4Win is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GPG4Win 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 General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA This file ========= Copyright 2005, 2006, 2008 g10 Code GmbH This file is free software; as a special exception the author gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff --git a/packages/Makefile.am b/packages/Makefile.am index 56ac1458..9784e5c4 100644 --- a/packages/Makefile.am +++ b/packages/Makefile.am @@ -1,38 +1,39 @@ # Makefile.am - Installer for GnuPG 4 Windows Makefile. # Copyright (C) 2005 g10 Code GmbH # # This file is part of GPG4Win. # # GPG4Win is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # GPG4Win 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 General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA EXTRA_DIST = download.sh packages.common packages.3 packages.4 \ gen-frameworks.sh gen-tarball.sh gen-kde-gears.sh \ get-gpg-package.sh distsigkey.gpg kde-release-keys.gpg \ + gen-kde-l10n.sh \ $(wildcard *.tar.gz *.tar.bz2 *.tar.xz *.zip *.exe *.wixlib) #upload: packages.current packages.current.sig # set -e; \ # echo "Uploading package list to www.gpg4win.org ..."; \ # user=`svn info | sed -n '/^URL:/ s,.*svn+ssh://\\([^@]*\\).*,\\1,p'`;\ # rsync -v -W packages.current{,.sig} \ # $${user}@wald.intevation.org:/gpg4win/htdocs/ # # #packages.current.sig : packages.current # @echo "packages.current.sig is expected to be a detached signature of packages.current" # @echo "Use \"gpg -sbu YOUR_KEYID packages.current\" to create it" # @false # diff --git a/packages/gen-kde-l10n.sh b/packages/gen-kde-l10n.sh index 8580f70e..c0d5f2e3 100755 --- a/packages/gen-kde-l10n.sh +++ b/packages/gen-kde-l10n.sh @@ -1,300 +1,300 @@ #!/bin/bash # Copyright (C) 2016 Intevation GmbH # # This file is part of GPG4Win. # # GPG4Win is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # GPG4Win 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 General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # Grab the latest kf5 translations and build a binary/source package for kleo. # Autogenerates NSIS Files that include translations for frameworks. # # This script needs installed packages to determine which frameworks # localizations exist set -e tmpdir=$(mktemp -d -p $(pwd)) VERSION=$(date +%Y%m%d%H%M) -g4widir="$(readlink -f $(dirname $0)/playground/install)" +g4widir="$(readlink -f $(dirname $0)/../src/playground/install)" if [ ! -e "$g4widir" ]; then echo "Please build gpg4win first." echo "This script needs installed packages to determine which frameworks localizations exist" exit 1 fi # QFrameworks are frameworks that use qt translations QFRAMEWORKS="kconfig kcompletion kcodecs kcoreaddons kitemviews kwidgetsaddons kwindowsystem" # KFrameworks are frameworks that use KDE translations KFRAMEWORKS="kconfigwidgets ki18n kiconthemes kxmlgui" POFILES="libkleo/libkleopatra.po \ kleopatra/kwatchgnupg.po kleopatra/kleopatra.po" # See: https://websvn.kde.org/*checkout*/trunk/l10n-kf5/subdirs LANGS="af \ ar \ as \ ast \ be \ be@latin \ bg \ bn \ bn_IN \ br \ bs \ ca \ ca@valencia \ crh \ cs \ csb \ cy \ da \ de \ el \ en_GB \ eo \ es \ et \ eu \ fa \ fi \ fr \ fy \ ga \ gd \ gl \ gu \ ha \ he \ hi \ hne \ hr \ hsb \ hu \ hy \ ia \ id \ is \ it \ ja \ ka \ kk \ km \ kn \ ko \ ku \ lb \ lt \ lv \ mai \ mk \ ml \ mr \ ms \ mt \ nb \ nds \ ne \ nl \ nn \ nso \ oc \ or \ pa \ pl \ ps \ pt \ pt_BR \ ro \ ru \ rw \ se \ si \ sk \ sl \ sq \ sr \ sr@ijekavian \ sr@ijekavianlatin \ sr@latin \ sv \ ta \ te \ tg \ th \ tr \ tt \ ug \ uk \ uz \ uz@cyrillic \ vi \ wa \ xh \ x-test \ zh_CN \ zh_HK \ zh_TW" instfile=$tmpdir/inst-kde-l10n.nsi uninstfile=$tmpdir/uninst-kde-l10n.nsi cat > $instfile <> $instfile done cat >> $instfile << EOF !define prefix \${ipdir}/kde-l10n-\${gpg4win_pkg_kde_l10n_version} !ifdef DEBUG Section "kde-l10n" SEC_kde_l10n !else Section "-kde-l10n" SEC_kde_l10n !endif SetOutPath "\$INSTDIR" !ifdef SOURCES File "\${gpg4win_pkg_kde_l10n_src}" !else EOF cat > $uninstfile </dev/null || \ echo "$pofile not found in $lang" done cd .. done l10ndir_bin=$tmpdir/kde-l10n-$VERSION-bin mkdir -p $l10ndir_bin cd $l10ndir_bin for lang in $LANGS; do if ! ls $l10ndir/$lang/*.po > /dev/null 2>&1; then # No kleo translations. Skip it. continue fi if ! [ -e "$g4widir/share/locale/$lang/kf5_entry.desktop" ]; then # No desktop file. Won't show up in ui echo "$g4widir/share/locale/$lang/kf5_entry.desktop does not exist" continue fi mkdir -p $l10ndir_bin/share/locale/$lang/LC_MESSAGES echo " SetOutPath \"\$INSTDIR\\share\\locale\\$lang\"" >> $instfile echo " File \${kcfg_prefix}/share/locale/$lang/kf5_entry.desktop" >> $instfile echo " Delete \"\$INSTDIR\\share\\locale\\$lang\\kf5_entry.desktop\"" >> $uninstfile echo " SetOutPath \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\"" >> $instfile for frame in $KFRAMEWORKS; do if [ -e "$g4widir/share/locale/$lang/LC_MESSAGES/${frame}5.mo" ]; then echo " File \${${frame}_prefix}/share/locale/$lang/LC_MESSAGES/${frame}5.mo" >> $instfile echo " Delete \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\\${frame}5.mo\"" >> $uninstfile fi done for frame in $QFRAMEWORKS; do if [ -e "$g4widir/share/locale/$lang/LC_MESSAGES/${frame}5_qt.qm" ]; then echo " File \${${frame}_prefix}/share/locale/$lang/LC_MESSAGES/${frame}5_qt.qm" >> $instfile echo " Delete \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\\${frame}5_qt.qm\"" >> $uninstfile fi done for pofile in $POFILES; do moname=$(basename $pofile | sed 's/\.po/\.mo/') if msgfmt -o $l10ndir_bin/share/locale/$lang/LC_MESSAGES/$moname $l10ndir/$lang/`basename $pofile` 2>/dev/null; then echo " File \${prefix}/share/locale/$lang/LC_MESSAGES/$moname" >> $instfile echo " Delete \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\\$moname\"" >> $uninstfile fi done echo "RMDir \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\"" >> $uninstfile echo "RMDir \"\$INSTDIR\\share\\locale\\$lang\\LC_MESSAGES\"" >> $uninstfile echo "RMDir \"\$INSTDIR\\share\\locale\\$lang\"" >> $uninstfile cd .. done echo "RMDir \"\$INSTDIR\\share\\locale\"" >> $uninstfile echo "RMDir \"\$INSTDIR\\share\"" >> $uninstfile echo "RMDir \"\$INSTDIR\"" >> $uninstfile echo "!endif" >> $uninstfile echo "SectionEnd" >> $uninstfile echo "!endif" >> $instfile echo "SectionEnd" >> $instfile cd $tmpdir tar -cJf kde-l10n-$VERSION-src.tar.xz kde-l10n-$VERSION-src cd $l10ndir_bin tar -cJf ../kde-l10n-$VERSION-bin.tar.xz * cd .. echo "Done dir is: $tmpdir"