#!/bin/bash ## src2pkg script for: rox-filer ## Auto-generated by src2pkg-2.6 ## src2pkg - Copyright 2005-2011 Gilbert Ashley SOURCE_NAME='rox-filer-2.10.tar.bz2' NAME='rox-filer' # Use ALT_NAME to override guessed value VERSION='2.10' # Use ALT_VERSION to override guessed value # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='rox-patches/000-2.10-git.diff rox-patches/001-rox-filer-fix-focus-unmap_event.diff rox-patches/002-rox-fix-GDK_NATIVE_WINDOWS.diff rox-patches/#003-dont-scold-root.diff rox-patches/004-OpenWith.diff rox-patches/005-rox-SOAP-OpenOptionsUi.diff' # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms # configure_source # # compile_source # If used, the 'build' function replaces these 3 # fake_install # # compile the thing ( cd $SRC_DIR/ROX-Filer ./AppRun --compile (cd src && make clean) ) ( cd ${SRC_DIR}/ROX-Filer && rm -f ROX-Filer.dbg && rm -rf build src ) ( cd ${SRC_DIR} && rm -f 0compile.properties *.log ) mkdir -p $PKG_DIR/usr/share/mime/packages cp $SRC_DIR/rox.xml $PKG_DIR/usr/share/mime/packages mkdir -p $PKG_DIR/usr/apps/ROX-Filer cp -a $SRC_DIR/* $PKG_DIR/usr/apps/ROX-Filer # be sure to copy the hidden DirIcon png file cp $SRC_DIR/.DirIcon $PKG_DIR/usr/apps/ROX-Filer chown -R root:root $PKG_DIR/usr/apps/ROX-Filer chmod 755 $PKG_DIR/usr/apps/ROX-Filer # remove the sources, but leave the patches in case anyone is interested ( cd $PKG_DIR/usr/apps/ROX-Filer && rm -rf src ) chmod 644 $PKG_DIR/usr/apps/ROX-Filer/patches/* mkdir -p $PKG_DIR/usr/bin cat > $PKG_DIR/usr/bin/rox <