mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
Update recibe's recipe
Update recibe's recipe to include the recipe database.
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"
|
||||
DESCRIPTION="
|
||||
Recibe, written by DarkWyrm, is a cooking recipe manager. The
|
||||
database, which needs to be downloaded separately, includes
|
||||
around 52,000 different recipes for you to try.
|
||||
|
||||
If you download the recipe database, place it inside your settings
|
||||
directory, which is likely '/boot/home/config/settings/' .
|
||||
included database contains around 52,000 different recipes for
|
||||
you to try.
|
||||
"
|
||||
HOMEPAGE="https://github.com/HaikuArchives/Recibe"
|
||||
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"
|
||||
COPYRIGHT="2007 DarkWyrm"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
ADDITIONAL_FILES="
|
||||
install_recipes_database.sh
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
recibe = $portVersion
|
||||
app:recibe = $portVersion
|
||||
@@ -37,6 +40,14 @@ BUILD_PREREQUIRES="
|
||||
cmd:xres
|
||||
"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/recipes.db
|
||||
settings/Recibe_favorites
|
||||
"
|
||||
POST_INSTALL_SCRIPTS="
|
||||
$relativePostInstallDir/install_recipes_database.sh
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd sources
|
||||
@@ -49,4 +60,10 @@ INSTALL()
|
||||
mkdir -p $appsDir
|
||||
cp sources/objects/Recibe $appsDir
|
||||
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