# Example custom makefile for creating .deb without using dpkg tools. # # Author: Tim Wegener # # This requires deb_hand.mak # Sources: # SOURCE_DIR - directory containing files to be packaged # ICON_SOURCE - 26x26 icon file for maemo # description.txt - description with summary on first line # preinst, postinst, prerm, postrm - optional control shell scripts # These fields are used to build the control file. PACKAGE = exaile VERSION = 0.2.10-1 ARCH = armel SECTION = user/multimedia PRIORITY = optional MAINTAINER = Tim Wegener # todo: For python2.4 it also needs python2.4-elementtree and python2.4-sqlite DEPENDS = \ python2.5 | python2.4, \ python2.5-gobject | python2.4-gobject, \ python2.5-gtk2 | python2.4-gtk2, \ python2.5-osso | python2.4-osso, \ python2.5-hildon | python2.4-hildon, \ python2.5-gstreamer | python2.4-gstreamer, \ gstreamer0.10-plugins-good, gstreamer0.10-plugins-base, \ python2.5-mutagen | python2.4-mutagen # todo: Recommends SOURCE_DIR = .. ICON_SOURCE = ${SOURCE_DIR}/maemo_deb/exaile26.png ${PACKAGE_DIR}/data: ${SOURCE_DIR} rm -rf $@ mkdir $@ cd ${SOURCE_DIR} && \ hg archive ${PACKAGE_DIR}/data/usr/share/exaile/ mv $@/usr/share/exaile/po $@/usr/share/locale rm -f $@/usr/share/locale/*.po $@/usr/share/locale/*.py mkdir $@/usr/bin mv $@/usr/share/exaile/maemo_deb/exaile $@/usr/bin/ mkdir $@/usr/share/pixmaps cp $@/usr/share/exaile/maemo_deb/exaile.png $@/usr/share/pixmaps/ mkdir -p $@/usr/share/applications/hildon mv $@/usr/share/exaile/maemo_deb/exaile.desktop \ $@/usr/share/applications/hildon mkdir -p $@/usr/share/icons/hicolor/26x26/hildon mkdir -p $@/usr/share/icons/hicolor/scalable/hildon cp $@/usr/share/exaile/maemo_deb/exaile.png \ $@/usr/share/icons/hicolor/scalable/hildon/ cp $@/usr/share/exaile/maemo_deb/exaile26.png \ $@/usr/share/icons/hicolor/26x26/hildon/exaile.png mkdir -p $@/usr/share/doc/exaile cp $@/usr/share/exaile/maemo_deb/copyright $@/usr/share/doc/ # todo: Compile pyc files. include deb_hand.mak