[Blends-commit] [SCM] ezgo branch, master, updated. 3c5c075b9a97b4e1d945e7579dd16688c71a88c7

Franklin franklin at goodhorse.idv.tw
Sun Jan 4 15:57:56 UTC 2015


The following commit has been merged in the master branch:
commit 3c669893603b0c75369c2ee4ac535ac7a4747c69
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Sun Jan 4 23:54:04 2015 +0800

    Add ezgo-gsyan packages

diff --git a/debian/ezgo-gsyan.install b/debian/ezgo-gsyan.install
new file mode 100644
index 0000000..f70aaa5
--- /dev/null
+++ b/debian/ezgo-gsyan.install
@@ -0,0 +1 @@
+ezgo-gsyan/gsyan.desktop usr/share/applications
diff --git a/debian/ezgo-gsyan.postinst b/debian/ezgo-gsyan.postinst
new file mode 100644
index 0000000..0e999d5
--- /dev/null
+++ b/debian/ezgo-gsyan.postinst
@@ -0,0 +1,33 @@
+#!/bin/sh -e
+
+GSYAN_VERSION=ezgo12
+GSYAN_URL=ftp://goodhorse.idv.tw/debian-ezgo/ezgo-gsyan/gsyan_${GSYAN_VERSION}.tar.gz
+MD5_URL=ftp://goodhorse.idv.tw/debian-ezgo/ezgo-gsyan/gsyan.md5
+OUTPUT_FILE=/usr/share/ezgo/ezgo-prt/gsyan_${GSYAN_VERSION}.tar.gz
+MD5_FILE=/usr/share/ezgo/ezgo-prt/gsyan.md5
+
+mkdir -p /usr/share/ezgo/ezgo-prt/
+
+echo "Downloading ezgo-gsyan_${GSYAN_VERSION}"
+
+exit_with_error()
+{
+	echo $1
+	exit 1
+}
+
+wget --continue -O $OUTPUT_FILE $GSYAN_URL || exit_with_error "Download ezgo-gsyan file failed: $?"
+wget --continue -O $MD5_FILE $MD5_URL || exit_with_error "Download md5 file failed: $?"
+
+cd /usr/share/ezgo/ezgo-prt
+md5sum -c $MD5_FILE || exit_with_error "md5 checksum error!"
+
+rm -rf gsyan gsyan_ezgo12
+tar xfz $OUTPUT_FILE
+ln -s gsyan_${GSYAN_VERSION} gsyan
+rm -f $MD5_FILE
+rm -f $OUTPUT_FILE
+
+#DEBHELPER#
+
+exit 0
diff --git a/ezgo-gsyan/gsyan.desktop b/ezgo-gsyan/gsyan.desktop
new file mode 100644
index 0000000..7a06ad4
--- /dev/null
+++ b/ezgo-gsyan/gsyan.desktop
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Comment[zh_TW]=顏國雄老師 Flash 教材
+Comment=Flash tutorial accessories made by G. S. Yan
+Exec=x-www-browser /usr/share/ezgo/ezgo-prt/PhET/index.html
+GenericName[zh_TW]=台北市力行國小顏國雄老師所開發的多個 Flash 教材
+GenericName=Flash tutorial accessories made by G. S. Yan
+Icon=
+Name[zh_TW]=顏國雄老師 Flash 教材
+Name=ezgo-gsyan
+StartupNotify=true
+Terminal=false
+Type=Application
+X-DBUS-ServiceName=
+X-DBUS-StartupType=
+X-KDE-SubstituteUID=false
+X-KDE-Username=
+Categories=Education;X-Opencontent;

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list