Difference between revisions of "En/TDE k3b-i18n"
(Added page about K3b-i18n, TDE and Slackware 14.0) |
(No difference)
|
Revision as of 13:05, 26 June 2014
Welcome to Simone Giustetti's wiki pages.
Languages: English - Italiano
K3B-I18N
En/trinity_desktop_environment#Applications
The package includes the localization files for K3b in other words the program translation to languages other then English, the default Trinity Desktop Environment one. The k3b-i18n package includes files for more than 50 different languages.
K3b-i18n and Slackware
Like K3b, the main optical media burning package, K3b-i18n has been part of the official Slackware distribution for many years: The existing build script, updated and integrated, was used for the TDE distributed K3b release. Autotools were used for the task as the package has not been ported to cmake yet. The following rules were applied when compiling the package to ensure a clean build:
- Directory /opt/trinity was set as package root directory.
- Some missing makefiles were created running the make command from inside the main directory of the code extracted from the source archive.
- No specific option was set for the configure command as the package does not seem to need any.
- The script line of code meant to strip binary files of debug information was removed as there is no need of it.
Some script lines of code and related comments follow.
Some configuration scripts required by the build procedure are missing from the source tarball. We create the makefiles using the make command:
# Prepare the package for building (Create the configure script). echo "(II) admin makefile run here" >> ${OUTPUT}/${PRGNAM}_configure.log make -f admin/Makefile.common \ 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
The script specifically sets Qt libraries paths in order for other scripts to find them at build time:
# Add temporary paths to handle new libraries during build export QTDIR=/opt/trinity export PATH=/opt/trinity/bin:/usr/bin:$PATH export LIBDIR=/usr/lib${LIBDIRSUFFIX} export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX} export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH
Finally the script runs the ./configure command to configure source code in accordance to the destination environment:
# Configure the package LDFLAGS="${SLKLDFLAGS}" \ CFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \ ../${PRGNAM}-${VERSION}/configure \ --prefix=${PREFIX} \ --sysconfdir="/etc/trinity" \ --libdir=${LIBDIR} \ --docdir=/usr/doc \ --mandir=${PREFIX}/man \ --with-qt-dir=${QTDIR} \ --with-qt-includes=${PREFIX}/include \ --with-qt-libraries=${PREFIX}/lib${LIBDIRSUFFIX} \ --disable-rpath \ 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.
A full script can be downloaded from the following link. The output package can be installed using command installpkg as usual in Slackware Linux.
For any feedback, questions, errors and such, please e-mail me at studiosg [at] giustetti [dot] net
External Links
Languages: English - Italiano