mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Merged in noryb009/haikuports/recibe-2 (pull request #94)
Update recibe's recipe
This commit is contained in:
22
haiku-apps/recibe/additional-files/install_recipes_database.sh
Executable file
22
haiku-apps/recibe/additional-files/install_recipes_database.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
settingsDir="$(finddir B_USER_SETTINGS_DIRECTORY)"
|
||||||
|
|
||||||
|
recibeSysDataDir="$(finddir B_SYSTEM_DATA_DIRECTORY)"
|
||||||
|
recibeUserDataDir="$(finddir B_USER_DATA_DIRECTORY)"
|
||||||
|
recibesFileBase="recibe/recipes.db.zip"
|
||||||
|
|
||||||
|
if [ -f "$settingsDir/recipes.db" ]; then
|
||||||
|
exit 0 # already have a recipes database
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$recibeSysDataDir/$recibesFileBase" ]; then
|
||||||
|
recipesZipFile="$recibeSysDataDir/$recibesFileBase"
|
||||||
|
elif [ -f "$recibeUserDataDir/$recibesFileBase" ]; then
|
||||||
|
recipesZipFile="$recibeUserDataDir/$recibesFileBase"
|
||||||
|
else
|
||||||
|
exit 1 # couldn't find recipes.db
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$settingsDir"
|
||||||
|
unzip "$recipesZipFile"
|
||||||
@@ -1,19 +1,22 @@
|
|||||||
SUMMARY="A cooking recipe manager"
|
SUMMARY="A cooking recipe manager"
|
||||||
DESCRIPTION="
|
DESCRIPTION="
|
||||||
Recibe, written by DarkWyrm, is a cooking recipe manager. The
|
Recibe, written by DarkWyrm, is a cooking recipe manager. The
|
||||||
database, which needs to be downloaded separately, includes
|
included database contains around 52,000 different recipes for
|
||||||
around 52,000 different recipes for you to try.
|
you to try.
|
||||||
|
|
||||||
If you download the recipe database, place it inside your settings
|
|
||||||
directory, which is likely '/boot/home/config/settings/' .
|
|
||||||
"
|
"
|
||||||
HOMEPAGE="https://github.com/HaikuArchives/Recibe"
|
HOMEPAGE="https://github.com/HaikuArchives/Recibe"
|
||||||
SRC_URI="git://github.com/HaikuArchives/Recibe.git#c1d5a57264d8964a2592bc9b43588b3430bd48ad"
|
SRC_URI="git://github.com/HaikuArchives/Recibe.git#c1d5a57264d8964a2592bc9b43588b3430bd48ad"
|
||||||
|
SRC_URI_2="http://ports-space.haiku-files.org/recibe/recipes.db.zip#noarchive"
|
||||||
|
CHECKSUM_MD5_2="1dda608c90b426521b69ab51311f0f15"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
COPYRIGHT="2007 DarkWyrm"
|
COPYRIGHT="2007 DarkWyrm"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||||
|
|
||||||
|
ADDITIONAL_FILES="
|
||||||
|
install_recipes_database.sh
|
||||||
|
"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
recibe = $portVersion
|
recibe = $portVersion
|
||||||
app:recibe = $portVersion
|
app:recibe = $portVersion
|
||||||
@@ -37,6 +40,14 @@ BUILD_PREREQUIRES="
|
|||||||
cmd:xres
|
cmd:xres
|
||||||
"
|
"
|
||||||
|
|
||||||
|
USER_SETTINGS_FILES="
|
||||||
|
settings/recipes.db
|
||||||
|
settings/Recibe_favorites
|
||||||
|
"
|
||||||
|
POST_INSTALL_SCRIPTS="
|
||||||
|
$relativePostInstallDir/install_recipes_database.sh
|
||||||
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
cd sources
|
cd sources
|
||||||
@@ -49,4 +60,10 @@ INSTALL()
|
|||||||
mkdir -p $appsDir
|
mkdir -p $appsDir
|
||||||
cp sources/objects/Recibe $appsDir
|
cp sources/objects/Recibe $appsDir
|
||||||
addAppDeskbarSymlink $appsDir/Recibe
|
addAppDeskbarSymlink $appsDir/Recibe
|
||||||
|
|
||||||
|
mkdir -p $dataDir/recibe
|
||||||
|
cp $sourceDir2/recipes.db.zip $dataDir/recibe
|
||||||
|
|
||||||
|
mkdir -p $postInstallDir
|
||||||
|
cp $portDir/additional-files/install_recipes_database.sh $postInstallDir
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user