diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2004-09-30 14:34:55 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2004-09-30 14:34:55 +0000 |
commit | 7d5b527f225ceb3c28a1942a065da143ea87f593 (patch) | |
tree | 20e76fa8ace4cb36457c5be7580bf69972378334 /portabase | |
parent | d3582f1eb4451d4fad317e12e0e0dafeef836089 (diff) |
Merge bk://openembedded@openembedded.bkbits.net/packages
into marcinj.local:/home/hrw/zaurus/oe/packages
2004/09/30 16:34:42+02:00 local!hrw
"oelint" fixes
BKrev: 415c198fGB5bqVB1XUi1P1ttT8pM5w
Diffstat (limited to 'portabase')
-rw-r--r-- | portabase/portabase_1.9.oe | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/portabase/portabase_1.9.oe b/portabase/portabase_1.9.oe index e69de29bb2..1986d693b0 100644 --- a/portabase/portabase_1.9.oe +++ b/portabase/portabase_1.9.oe @@ -0,0 +1,120 @@ +DESCRIPTION = "Portabase is a small database program for creating, browsing, and editing custom tables of data." +LICENCE = "GPL" +HOMEPAGE = "http://portabase.sourceforge.net/" +DEPENDS = "metakit beecrypt" +APPNAME = "portabase" +PR = "r1" + +SRC_URI = "${SOURCEFORGE_MIRROR}/portabase/portabase_${PV}.tar.gz \ + file://qtopia.patch;patch=1 \ + file://fileselector.patch;patch=1" + +S = "${WORKDIR}/portabase" + +inherit palmtop + +QMAKE_PROFILES = "portabase.pro" +QPEDIR = ${OPIEDIR} + +# lrelease portabase.pro + +do_install() { + install -d ${D}/${palmtopdir}/bin \ + ${D}/${palmtopdir}/apps/Applications \ + ${D}/${palmtopdir}/pics/${APPNAME} \ + ${D}/${palmtopdir}/help/en + install -D -m 0755 ${APPNAME} ${D}/${palmtopdir}/bin/${APPNAME} + install -m 0644 package/${APPNAME}.desktop ${D}/${palmtopdir}/apps/Applications/${APPNAME}.desktop + + install -D -m 0644 pics/PortaBase.png ${D}/${palmtopdir}/pics/PortaBase.png + for f in calculator.png checked.png image.png note.png save.png save_disabled.png unchecked.png calendar.xpm QtaDatePickerNext.xpm QtaDatePickerPrev.xpm + do + install -D -m 0644 pics/$f ${D}/${palmtopdir}/pics/${APPNAME}/$f + done + + install -D -m 0644 help/html/${APPNAME}.html ${D}/${palmtopdir}/help/en/html/${APPNAME}.html +} + + +pkg_postinst() { +#!/bin/sh + +NEWTYPE=application/portabase +EXT=pob + +T=${NEWTYPE%/*} +S=${NEWTYPE#*/} + +grep $EXT $QPEDIR/etc/mime.types | +( + read TYPE EXTS + if [ -z "$TYPE" ] + then + if grep -q "^$NEWTYPE[ ]" $QPEDIR/etc/mime.types || grep -q "^$NEWTYPE$" $QPEDIR/etc/mime.types + then + if sed -e '/^'$T"\\/"$S'[ ]/ s/$/ '$EXT'/' <$QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new || + sed -e '/^'$T"\\/"$S'$/ s/$/ '$EXT'/' <$QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new + then + mv $QPEDIR/etc/mime.types.new $QPEDIR/etc/mime.types + exit 0 + else + echo >&2 "Internal MIME type update error" + exit 1 + fi + else + echo "" >>$QPEDIR/etc/mime.types + sed -e :a -e '/^\n*$/{$d;N;};/\n$/ba' $QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new + mv $QPEDIR/etc/mime.types.new $QPEDIR/etc/mime.types + echo "$NEWTYPE $EXT" >>$QPEDIR/etc/mime.types + exit 0 + fi + elif [ "$TYPE" = "$NEWTYPE" ] + then + #echo "Already done" + exit 0 + else + echo >&2 "$EXT already assigned to $TYPE" + exit 1 + fi +) + +NEWTYPE=text/x-csv +EXT=csv + +T=${NEWTYPE%/*} +S=${NEWTYPE#*/} + +grep $EXT $QPEDIR/etc/mime.types | +( + read TYPE EXTS + if [ -z "$TYPE" ] + then + if grep -q "^$NEWTYPE[ ]" $QPEDIR/etc/mime.types || grep -q "^$NEWTYPE$" $QPEDIR/etc/mime.types + then + if sed -e '/^'$T"\\/"$S'[ ]/ s/$/ '$EXT'/' <$QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new || + sed -e '/^'$T"\\/"$S'$/ s/$/ '$EXT'/' <$QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new + then + mv $QPEDIR/etc/mime.types.new $QPEDIR/etc/mime.types + exit 0 + else + echo >&2 "Internal MIME type update error" + exit 1 + fi + else + echo "" >>$QPEDIR/etc/mime.types + sed -e :a -e '/^\n*$/{$d;N;};/\n$/ba' $QPEDIR/etc/mime.types >$QPEDIR/etc/mime.types.new + mv $QPEDIR/etc/mime.types.new $QPEDIR/etc/mime.types + echo "$NEWTYPE $EXT" >>$QPEDIR/etc/mime.types + exit 0 + fi + elif [ "$TYPE" = "$NEWTYPE" ] + then + #echo "Already done" + exit 0 + else + echo >&2 "$EXT already assigned to $TYPE" + exit 1 + fi +) +} + |