Commit 853299ea authored by Luis Guzmán's avatar Luis Guzmán
Browse files

Merge branch 'sugar_10.0' into 'master'

Port sugar to nabia

See merge request !31
parents bf7571e8 2a844c9d
ACTIVITY (VERSION) nabia; urgency=low
* VERSION release
-- Ruben Rodriguez <ruben@trisquel.info> DATE
Source: ACTIVITY
Section: games
Priority: optional
Maintainer: Ruben Rodriguez <ruben@trisquel.info>
Build-Depends: debhelper (>= 7)
Standards-Version: 3.9.2
Package: ACTIVITY
Architecture: all
Description: ACTIVITY
An activity for the Sugar learning environment.
This package was debianized by Ruben Rodriguez <ruben@trisquel.info>
It was downloaded from http://activities.sugarlabs.org
Copyright The autors
This program 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.
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 General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
#!/usr/bin/make -f
%:
dh $@
sh update_bundles.sh
rm tmp -rf
ls bundles/|grep '.xo'|xargs -i sh package-activity.sh {}
#!/bin/bash
set -e
build(){
ACTIVITY=sugar-activity-$(echo $1 |sed 's/-.*//; s/\(.*\)/\L\1/; s/_/-/;')
VERSION=$(echo $1 |sed 's/.*-//; s/\.xo//')
DATE=$(LANG=en date '+%a, %d %b %Y %T +0000')
echo $ACTIVITY
mkdir -p tmp/$ACTIVITY/usr/share/sugar/activities
unzip bundles/$1 -d tmp/$ACTIVITY/usr/share/sugar/activities/
cp debian -a tmp/$ACTIVITY
sed -i "s/ACTIVITY/$ACTIVITY/" -i tmp/$ACTIVITY/debian/*
sed -i "s/VERSION/$VERSION/" -i tmp/$ACTIVITY/debian/*
sed -i "s/DATE/$DATE/" -i tmp/$ACTIVITY/debian/*
mkdir -p tmp/$ACTIVITY/usr/share/locale
cp tmp/$ACTIVITY/usr/share/sugar/activities/*/locale/* tmp/$ACTIVITY/usr/share/locale/ -a || true
rm -rf tmp/$ACTIVITY/usr/share/locale/*/activity.linfo
cd tmp/$ACTIVITY
dpkg-buildpackage -us -uc
cd ../..
}
if [ 1$1 = 1 ]; then
for BUNDLE in $(ls -1 bundles |grep xo$); do
build $BUNDLE
done
else
build $1
fi
set -e
rm -rf bundles
mkdir bundles
for repo in browse-activity calculate-activity chat imageviewer-activity jukebox-activity log-activity Pippy read-activity terminal-activity turtleart-activity write-activity activity-abacus AnalyzeJournal clock-activity colordeducto deducto develop-activity flip flipsticks fractionbounce gcompris-wrapper-activity sugarchess iknowmyabcs iq-activity implode-activity jumble-activity lettermatch locosugar maze-activity Measure moon-activity music-keyboard-activity napier nutrition paint-activity periodic-table poll-activity portfolio-activity pukllanapac recall record-activity reflection speak stopwatch story typing-turtle-activity wordcloud words-activity irc-activity memorize-activity
do
git clone https://github.com/sugarlabs/$repo.git bundles/$repo
dos2unix bundles/$repo/activity/activity.info
activity=$(grep "^name *=" bundles/$repo/activity/activity.info| sed 's/.*=//;s/ //g')
version=$(grep "^activity_version *=" bundles/$repo/activity/activity.info| sed 's/.*=//;s/ //g')
rm bundles/$repo/.git* -rf
#mv bundles/$repo bundles/$activity
mv bundles/$repo bundles/$activity.activity
(cd bundles ; zip -r ${activity}-${version}.xo $activity.activity)
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment