--- /dev/null
+#!/bin/sh -xe
+# clean
+clean()
+{
+ prepare
+
+ cd $SRCDIR/tizen/
+ if test -e "Makefile"
+ then
+ ./emulator_configure.sh
+ make clean
+ fi
+ rm -rf $SRCDIR/*.zip
+ rm -rf $SRCDIR/*.tar.gz
+}
+
+# check build environment
+prepare()
+{
+ if [ "$JAVA_HOME" = "" ]
+ then
+ echo "Make sure that you have installed JDK"
+ echo "and then set installed JDK/bin path into JAVA_HOME"
+ echo "as a system environment variable on your PC!!"
+ exit 1
+ fi
+}
+
+# build
+build()
+{
+ cd $SRCDIR/tizen/
+# ./emulator_configure.sh
+ make all_dibs
+}
+
+# install
+install()
+{
+ BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
+ mkdir -p $BIN_DIR
+
+ cd $SRCDIR/tizen
+ make install_dibs
+ mv emulator $BIN_DIR
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
-Package: emulator-qemu-x86
Version: 1.3.6
+Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
+Source: emulator
+
+Package: emulator-qemu-x86
OS: ubuntu-32
Build-host-os: ubuntu-32
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
-Build-dependency: emulator-lib [ ubuntu-32]
+Build-dependency: emulator-lib [ ubuntu-32 ]
Install-dependency: emulator-kernel-x86 [ ubuntu-32 ], vgabios [ ubuntu-32 ]
-Source: emulator
Description: Tizen Emulator
Package: emulator-qemu-x86
-Version: 1.3.6
OS: ubuntu-64
Build-host-os: ubuntu-64
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
-Build-dependency: emulator-lib [ ubuntu-64]
+Build-dependency: emulator-lib [ ubuntu-64 ]
Install-dependency: emulator-kernel-x86 [ ubuntu-64 ], vgabios [ ubuntu-64 ]
-Source: emulator
Description: Tizen Emulator
Package: emulator-qemu-x86
-Version: 1.3.6
OS: windows-32
Build-host-os: windows-32
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Build-dependency: SDL-1.2.14 [ windows-32 ], apache-ant-1.8.3-bin [ windows-32 ], gtk-bundle_2.16.6 [ windows-32 ], directx-dev [ windows-32 ], emulator-lib [ windows-32 ]
Install-dependency: emulator-kernel-x86 [ windows-32 ], vgabios [ windows-32 ]
-Source: emulator
+Description: Tizen Emulator
+
+Package: emulator-qemu-x86
+OS: macos-64
+Build-host-os: macos-64
+Build-dependency: emulator-lib [ macos-64 ]
+Install-dependency: emulator-kernel-x86 [ macos-64 ], vgabios [ macos-64 ]
Description: Tizen Emulator