From 5913f55376ef61718a9d9d4978a6349f2cd3622a Mon Sep 17 00:00:00 2001 From: Humdinger Date: Wed, 3 Oct 2018 20:20:01 +0200 Subject: [PATCH] QuickTour: new recipe "A quick tour of Haiku, aimed at new users" --- .../quicktour-link-on-desktop.sh | 14 ++++++ haiku-misc/quicktour/quicktour-0.2.recipe | 44 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 haiku-misc/quicktour/additional-files/quicktour-link-on-desktop.sh create mode 100644 haiku-misc/quicktour/quicktour-0.2.recipe diff --git a/haiku-misc/quicktour/additional-files/quicktour-link-on-desktop.sh b/haiku-misc/quicktour/additional-files/quicktour-link-on-desktop.sh new file mode 100755 index 000000000..87f01639b --- /dev/null +++ b/haiku-misc/quicktour/additional-files/quicktour-link-on-desktop.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Script to create a symlink of the Haiku Quick Tour +# start page on the Desktop + +startPage="01-start.html" +desktopDir="$(finddir B_DESKTOP_DIRECTORY)" +source="$(findpaths -e B_FIND_PATH_DOCUMENTATION_DIRECTORY quicktour/en/$startPage)" + +if [ -e "$source" ]; then + ln -sf "$source" "$desktopDir/QuickTour" +else + exit 1 # couldn't find Quick Tour +fi diff --git a/haiku-misc/quicktour/quicktour-0.2.recipe b/haiku-misc/quicktour/quicktour-0.2.recipe new file mode 100644 index 000000000..6eca830ea --- /dev/null +++ b/haiku-misc/quicktour/quicktour-0.2.recipe @@ -0,0 +1,44 @@ +SUMMARY="A quick tour of Haiku, aimed at new users" +DESCRIPTION="The Haiku Quick Tour is a set of HTML pages that introduce \ +Haiku's unique features especially to new users. Topics range from window \ +widgets and the Deskbar to window management like Stack & Tile and where \ +to get more software. All in under 20 slides. +After installation a link 'QuickTour' is created on the Desktop." +HOMEPAGE="https://github.com/humdingerb/quicktour" +COPYRIGHT="2018 Humdinger" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/humdingerb/quicktour/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="1d99c2efb0e1d466af009e4e079249fbe78cce8cce2335814f3098b632b7be15" +SOURCE_FILENAME="quicktour-$portVersion.tar.gz" +ADDITIONAL_FILES="quicktour-link-on-desktop.sh" +POST_INSTALL_SCRIPTS="$relativePostInstallDir/quicktour-link-on-desktop.sh" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + quicktour = $portVersion + " +REQUIRES="" + +BUILD_REQUIRES="" +BUILD_PREREQUIRES="" + +BUILD() +{ + true +} + +INSTALL() +{ + quickDir=$documentationDir/quicktour + mkdir -p $quickDir + + cp -r en $quickDir + cp -r images $quickDir + cp -a Haiku-tour.css $quickDir + + mkdir -p $postInstallDir + install -t $postInstallDir -m 755 $portDir/additional-files/quicktour-link-on-desktop.sh +}