diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/build-langpack.sh language-pack-kde-is-14.04+20140305.0ubuntu1/debian/build-langpack.sh --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/build-langpack.sh 1970-01-01 00:00:00.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/build-langpack.sh 2014-03-05 14:45:00.000000000 +0000 @@ -0,0 +1,63 @@ +#!/bin/bash + +export COMMON_BRANCH="lp:~kubuntu-packagers/kubuntu-packaging/kubuntu-l10n-common" +export COMMON_DIR="common-l10n" +if [ ! -d $COMMON_DIR ]; then + bzr co $COMMON_BRANCH $COMMON_DIR +else + wd=`pwd` + cd $COMMON_DIR + bzr up + cd $wd +fi +if [ ! -d $COMMON_DIR ]; then + echo "failed to get kubuntu-l10n-common, cannot continue!" + exit 1 +fi + +if ! source $COMMON_DIR/common ; then + echo "could not source common functions!!" + exit 1 +fi + +################################### + +checkDependencies +cdMainDirectory "language-pack-kde-common" + +includeConfig +ensureBranchIsPushed + +exportDirectories +purgeBuildDirectory +initBuildDirectory + +### TODO: configify +cd $BUILD_DIR +CO="common" +bzr branch lp:~kubuntu-packagers/kubuntu-packaging/language-pack-kde-common common + +### TODO: configify somehow +latest_kde_version=`ssh ${REMOTE_HOST} ls ${REMOTE_HOME}/${TYPE} | grep -P "^\d.*" | sort -V | tail -1` +tar_files=`ssh ${REMOTE_HOST} ls ${REMOTE_HOME}/${TYPE}/${latest_kde_version}/src/kde-l10n/ | grep "kde-l10n-.*.tar.xz"` + +for tar_file in $tar_files; do + echo "looking at tar $tar_file" + + if [[ $tar_file =~ kde-l10n-(.*)-$latest_kde_version.tar.xz ]]; then + exportCodeMappings ${BASH_REMATCH[1]} + else + echo "!!! SKIPPING $tar_file BECAUSE THE VERSION COULD NOT BE PARSED!!!" + continue + fi + + cd $BUILD_DIR + bzr branch $CO language-pack-kde-$ubuntudep + + cd language-pack-kde-$ubuntudep/debian/ + for debian_file in `ls`; do + gsubDebianFile $debian_file + done + + bzr-buildpackage -S --builder "dpkg-buildpackage -S -us -uc" +done diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/changelog language-pack-kde-is-14.04+20140305.0ubuntu1/debian/changelog --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/changelog 2013-12-16 11:30:15.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/changelog 2014-03-05 14:45:00.000000000 +0000 @@ -1,3 +1,12 @@ +language-pack-kde-is (1:14.04+20140305.0ubuntu1) trusty; urgency=low + + * Add README.source + * Add Vcs entries to debian/control + * Remove kdevelop/kdevplatform l10n as dependency. They are being pulled + onto the ISO for no good reason. + + -- Harald Sitter Mon, 20 Jan 2014 11:29:50 +0100 + language-pack-kde-is (1:14.04+20131216.0ubuntu1) trusty; urgency=low * Rebuild for KDE SC 14.04 diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/control language-pack-kde-is-14.04+20140305.0ubuntu1/debian/control --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/control 2013-12-16 11:30:15.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/control 2014-03-05 14:45:00.000000000 +0000 @@ -4,12 +4,14 @@ Maintainer: Kubuntu Developers Build-Depends: debhelper (>= 8) Standards-Version: 3.9.3 +Vcs-Bzr: https://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/language-pack-kde-common +Vcs-Browser: http://bazaar.launchpad.net/~kubuntu-packagers/kubuntu-packaging/language-pack-kde-common Package: language-pack-kde-is Architecture: all Pre-Depends: dpkg (>= 1.10.27ubuntu1) -Depends: ${misc:Depends}, language-pack-is, kde-l10n-is, k3b-i18n, kdevelop-l10n, kdevelop-php-docs-l10n, kdevelop-php-l10n -Conflicts: language-pack-kde-is-base -Description: KDE translation meta package for language Icelandic +Depends: ${misc:Depends}, ${kubuntu:Depends} +Conflicts: ${kubuntu:Conflicts} +Description: KDE translation meta package for language is Translation data updates for all supported KDE packages for: - Icelandic + is diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/README.source language-pack-kde-is-14.04+20140305.0ubuntu1/debian/README.source --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/README.source 1970-01-01 00:00:00.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/README.source 2014-03-05 14:45:00.000000000 +0000 @@ -0,0 +1,58 @@ +Welcome to the magic language-pack-kde-common branch. + +== Branch == +When applying changes to the packaging, you must only do this via the packaging +branch, otherwise the changes will be dropoped with the next upload based on +the branch! + +https://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/language-pack-kde-common + +== Intro == +This branch is designed to be the one and only common base for Language pack +meta packages for Kubuntu. +From inspecting this debian/ directory you will see that crucial strings +use weird keywords that can easily be substituted (such as +is). +Those will be manipulated by a magical script (debian/build-langpack.sh) to form +a sensible package for each available language. + +== Requirements == +* Packaging skillz +* Speedy internet access +* Access to the Ubuntu account on depot.kde.org (poke a random ninja for that) +* bzr +* bzr-buildpackage + +== General Workflow == +* Change +* Commit +* Push +* Build + +Note: build-langpack.sh will NOT under any circumstances let you build the packages +if you did not push all commits, nor will it include uncommited changes in the +build! + +== Updates == +When applying upstream updates remember to change the tag date/revision in +debian/rules, otherwise outdated desktop files will be merged into the package. + +== Internals == +* The magical script fetches all tarballs of the release as detected from + debian/changelog + - Download and sed magic is in debian/common of kde-l10n-common + - commonSequence from debian/common MUST be called before doing anything in the script +* All modifications to the common sequence's should be done in the kde-l10n-common branch +* Then branches the common branch for each downloaded language and replaces + the place holders with actual values +* Builds a package using bzr-buildpackage + + +Since this branch depends on source-format 3 there will not be a conversion from +bz2 to gz, which speeds up everything quite a bit. + +Once all packages are built and you are happy, you just need to dput them. + +== Author == +* Harald Sitter + diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/rules language-pack-kde-is-14.04+20140305.0ubuntu1/debian/rules --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/rules 2013-12-16 11:30:15.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/rules 2014-03-05 14:45:00.000000000 +0000 @@ -1,7 +1,16 @@ #!/usr/bin/make -f - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +# ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !# +# DO NOT EVEN THINK ABOUT CHANGING THIS FILE DIRECTLY! ! ! ! +# PLEASE USE THE BZR BRANCH AS SEEN IN debian/control +# MAKE YOUR CHANGES THERE AND THEN RUN debian/build-l10n.sh +# kthxbai :) +################################################################################ +################################################################################ +################################################################################ +################################################################################ %: dh $@ + +override_dh_gencontrol: + dh_gencontrol -- -Tdebian/substvars diff -Nru language-pack-kde-is-14.04+20131216.0ubuntu1/debian/substvars language-pack-kde-is-14.04+20140305.0ubuntu1/debian/substvars --- language-pack-kde-is-14.04+20131216.0ubuntu1/debian/substvars 1970-01-01 00:00:00.000000000 +0000 +++ language-pack-kde-is-14.04+20140305.0ubuntu1/debian/substvars 2014-03-05 14:45:00.000000000 +0000 @@ -0,0 +1,18 @@ +kubuntu:Depends=${kubuntu:AdditionalDepends}, language-pack-${kubuntu:UbuntuCode}, kde-l10n-${kubuntu:UbuntuKdeCode}, k3b-i18n + +kubuntu:Conflicts=language-pack-kde-${kubuntu:UbuntuCode}-base + +# ---- Substituted by the build script ---- # + +# KDE native code (zh_TW) +kubuntu:KdeCode=is + +# Our packaging code (zhtw) +kubuntu:UbuntuKdeCode=is + +# Generic ubuntu packaging code (zh-hans) +kubuntu:UbuntuCode=is + +# Additional Deps have special conditions attached that require evaluation +# in the build script (such as package needs to actually exist...). +kubuntu:AdditionalDepends=