diff --git a/haiku-misc/yoshi/additional-files/yoshi_postinstall.sh b/haiku-misc/yoshi/additional-files/yoshi_postinstall.sh new file mode 100755 index 000000000..ba6b9c6d4 --- /dev/null +++ b/haiku-misc/yoshi/additional-files/yoshi_postinstall.sh @@ -0,0 +1,6 @@ +#!/bin/sh +mkdir -p ~/config/settings/fatelk/yoshi/commands +datadir=`finddir B_SYSTEM_DATA_DIRECTORY` +cd $datadir/yoshi +cp -r * ~/config/settings/fatelk/yoshi +cp Example/* ~/config/settings/fatelk/yoshi/commands diff --git a/haiku-misc/yoshi/licenses/yoshi b/haiku-misc/yoshi/licenses/yoshi new file mode 100644 index 000000000..664242959 --- /dev/null +++ b/haiku-misc/yoshi/licenses/yoshi @@ -0,0 +1,25 @@ +Copyright 2016 Jim Saxton, Fat Elk Software. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY Jim Saxton, Fat Elk Software ``AS IS'' AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Jim Saxton, Fat Elk Software OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those of the +authors and should not be interpreted as representing official policies, either expressed +or implied, of Jim Saxton, Fat Elk Software. diff --git a/haiku-misc/yoshi/yoshi-1.1.recipe b/haiku-misc/yoshi/yoshi-1.1.recipe new file mode 100644 index 000000000..c7f788c52 --- /dev/null +++ b/haiku-misc/yoshi/yoshi-1.1.recipe @@ -0,0 +1,58 @@ +SUMMARY="Yab over the Shell Interface" +DESCRIPTION="Yoshi is a tool for creating native HAIKU dialog from the shell" +HOMEPAGE="http://software.besly.de/" +COPYRIGHT=" 2016 - 2020 Jim Saxton, Fat Elk Software" +LICENSE="yoshi" +REVISION="1" +SOURCE_URI="https://github.com/bbjimmy/Yoshi/archive/yoshi_1.1.tar.gz" +CHECKSUM_SHA256="0652db14a9415558c7dbbc5063ecfd9d1bdb7fd8457bc41cca8a3c6a47982be7" +SOURCE_DIR="Yoshi-yoshi_1.1" +ADDITIONAL_FILES="yoshi_postinstall.sh" + +ARCHITECTURES="x86_gcc2 x86_64" +DISABLE_SOURCE_PACKAGE="YES" + +POST_INSTALL_SCRIPTS="$relativePostInstallDir/yoshi_postinstall.sh" + +PROVIDES=" + yoshi = $portVersion + app:yoshi = $portVersion + cmd:yoshi=$portVersion + " +REQUIRES=" + haiku + yab>=1.7.8 + cmd:yab + lib:libz + lib:libyab_1.7.8 + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:unzip + " + +BUILD() +{ + unzip -o bin/$targetArchitecture/yoshi.zip +} + +INSTALL() +{ + DIR_YAB_DESKBAR="${dataDir}/deskbar/menu/Applications/yab" + mkdir -p ${DIR_YAB_DESKBAR} + mkdir -p $appsDir/yoshi + mkdir -p $dataDir/yoshi + mkdir -p $binDir + cp yoshi $appsDir/yoshi/ + cp yoshi $binDir + cp *.png $dataDir/yoshi/ + cp *.gif $dataDir/yoshi/ + cp License $dataDir/yoshi/ + cp -r Example $dataDir/yoshi/ + addAppDeskbarSymlink ${appsDir}/yoshi/yoshi "yab/yoshi" + mkdir -p $postInstallDir + install -t $postInstallDir -m 755 $portDir/additional-files/yoshi_postinstall.sh +}