Skip to content

Commit

Permalink
Added .deb building
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko Ohtamaa committed Nov 23, 2009
1 parent a2f346c commit b467773
Show file tree
Hide file tree
Showing 13 changed files with 760 additions and 0 deletions.
85 changes: 85 additions & 0 deletions maemo/Distribution.mk
@@ -0,0 +1,85 @@
#
# Build target .deb for Maemo
#
# See also: http://madabar.com/techblog/2007/07/15/manually-creating-a-deb-package-for-maemo/
#
#
#
# ARMEL binary name we are going to distribute
# This must also match one compiled into main.cpp
BINARY=phonegapdemo
PACKAGE = phonegapdemo

# Binary name after compilation
COMPILED_BINARY=phonegap

VERSION=1.0.0

VERSION = 1.0.0
ARCH = armel
SECTION = user/development
PRIORITY = optional
MAINTAINER = Mikko Ohtamaa <mikko.ohtamaa@twinapex.com>
# todo: For python2.4 it also needs python2.4-elementtree and python2.4-sqlite
DEPENDS =

# Which file contains .deb description
DESCRIPTION=${BINARY}.txt

# PyPackager target
DISTRIBUTION_FOLDER=distribution/data
# Must be absolute
PACKAGE_DIR = /scratchbox/users/moo/home/moo/phonegap/maemo/distribution
DISTRIBUTION_GZ=${BINARY}-${VERSION}.tar.gz
FULLNAME=Mikko Ohtamaa
EMAIL=mikko.ohtamaa@twinapex.com
MAINTAINER=${FULLANAME} <${EMAIL}>

# Where to build .deb package
SOURCE_DIR = ${DISTRIBUTION_FOLDER}

# Which icon use for .deb
ICON_SOURCE = ${DISTRIBUTION_FOLDER}/usr/share/icons/hicolor/26x26/hildon/${BINARY}.png

all: clean dist deb

# Create/update distribution structure
${PACKAGE_DIR}/data:
install -d ${DISTRIBUTION_FOLDER}
install -d ${DISTRIBUTION_FOLDER}/usr/bin
install -d ${DISTRIBUTION_FOLDER}/usr/share/applications/hildon
install -d ${DISTRIBUTION_FOLDER}/usr/share/icons/hicolor/26x26/hildon
install -d ${DISTRIBUTION_FOLDER}/usr/share/icons/hicolor/scalable/hildon
install -d ${DISTRIBUTION_FOLDER}/usr/share/icons/pixmaps
install -d ${DISTRIBUTION_FOLDER}/usr/share/${BINARY}

cp ${BINARY}.desktop ${DISTRIBUTION_FOLDER}/usr/share/applications/hildon

# Create icons
cp ${BINARY}_26x26.png ${DISTRIBUTION_FOLDER}/usr/share/icons/hicolor/26x26/hildon/${BINARY}.png
cp ${BINARY}_48x48.png ${DISTRIBUTION_FOLDER}/usr/share/icons/hicolor/scalable/hildon/${BINARY}.png
cp ${BINARY}_48x48.png ${DISTRIBUTION_FOLDER}/usr/share/icons/pixmaps/${BINARY}.png

cp -r www ${DISTRIBUTION_FOLDER}/usr/share/${BINARY}/www

cp ${COMPILED_BINARY} ${DISTRIBUTION_FOLDER}/usr/bin/${BINARY}
chmod 0755 ${DISTRIBUTION_FOLDER}/usr/bin/${BINARY}

dist: ${PACKAGE_DIR}/data

clean:
rm -rf ${PACKAGE_DIR}


include deb_hand.mak











24 changes: 24 additions & 0 deletions maemo/LICENSE.txt
@@ -0,0 +1,24 @@
The MIT License
-------------------------------------------------------------
Copyright (c) 2000 Twinapex Research http://www.twinapex.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

-------------------------------------------------------------

0 comments on commit b467773

Please sign in to comment.