Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

beebox / crossover   deb

Repository URL to install this package:

Version: 18.5.0-1 

/ opt / cxoffice / share / crossover / cxrepackage / deb.rules

#!/bin/sh
# (c) Copyright 2008, 2012. CodeWeavers, Inc.
set -e
name0=`basename "$0"`

# Setup logging
if [ -n "$CX_LOG" ]
then
    [ "$CX_LOG" = "-" ] || exec 2>>"$CX_LOG"
    echo >&2
    echo "***** `date`" >&2
    echo "Starting: $0 $@" >&2
    set -x
fi
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

testdir_files=""

while [ $# -gt 0 ]
do
    arg="$1"
    shift
    case "$arg" in
    clean)
        dh_testdir $testdir_files
        dh_clean "debian/tmp"
        ;;

    build|binary-arch|binary-indep)
        # Nothing to do: see binary
        ;;

    binary)
        dh_testdir $testdir_files
        dh_testroot
        dh_installdirs "/opt/@product_id@/etc"
        dh_install --sourcedir=/
        # So that Lintian does not bug us about unused sections
        DEB_HOST_GNU_TYPE=$DEB_BUILD_GNU_TYPE dh_strip
        if [ -f "changelog" ]
        then
            dh_installdocs changelog changelog.html
        else
            dh_installdocs
        fi
        dh_installchangelogs
        # Create this link here for the benefit of cxrepackage when running
        # against a MojoSetup install.
        ln -s "/usr/share/doc/@deb_package@" "debian/@deb_package@/opt/@product_id@/doc"
        # dh_lintian is not available until debhelper 7.4.15,
        # i.e. Ubuntu 10.04. So do without.
        dh_installdirs "/usr/share/lintian/overrides"
        cp "debian/lintian-overrides" "debian/@deb_package@/usr/share/lintian/overrides/@deb_package@"
        dh_link
        dh_compress
        dh_fixperms
        dh_installdeb
        dh_gencontrol
        dh_md5sums
        dh_builddeb --destdir=.
        ;;

    *)
        echo "$name0:error: unknown option '$arg'" >&2
        exit 1
    esac
done