mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged in humdinger/haikuports/filwip (pull request #518)
Updated filwip.
This commit is contained in:
20
haiku-apps/filwip/additional-files/install_plugins.sh
Executable file
20
haiku-apps/filwip/additional-files/install_plugins.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
settingsDir="$(finddir B_USER_SETTINGS_DIRECTORY)/FilWip/"
|
||||
|
||||
pluginsSysDataDir="$(finddir B_SYSTEM_DATA_DIRECTORY)/FilWip"
|
||||
pluginsUserDataDir="$(finddir B_USER_DATA_DIRECTORY)/FilWip"
|
||||
|
||||
if [ -d "$settingsDir/Plugins" ]; then
|
||||
exit 0 # already has Plugins folder
|
||||
fi
|
||||
|
||||
mkdir -p $settingsDir
|
||||
|
||||
if [ -d "$pluginsSysDataDir/Plugins" ]; then
|
||||
cp -rf "$pluginsSysDataDir/Plugins" "$settingsDir"
|
||||
elif [ -d "$pluginsUserDataDir/Plugins" ]; then
|
||||
cp -rf "$pluginsUserDataDir/Plugins" "$settingsDir"
|
||||
else
|
||||
exit 1 # couldn't find Plugins
|
||||
fi
|
||||
@@ -1,29 +1,24 @@
|
||||
SUMMARY="An app to clean all temporary and unwanted files"
|
||||
DESCRIPTION="
|
||||
It cleans your hard disk of all unwanted files such as left-over temporary \
|
||||
files, cache files of internet sessions, logs, history files and the like. It \
|
||||
works with easy to write text files that include information about where the \
|
||||
files to delete are.
|
||||
"
|
||||
SUMMARY="A tool to clean temporary and unwanted files"
|
||||
DESCRIPTION="It cleans your hard disk of unwanted files such as left-over \
|
||||
temporary files, cache files of internet sessions, logs, history files and \
|
||||
the like. It works with easy to write text files that include information \
|
||||
about where the files to delete are."
|
||||
HOMEPAGE="https://sites.google.com/site/appfilwip/home"
|
||||
SRC_URI="git://github.com/HaikuArchives/FilWip.git#160ea1a"
|
||||
REVISION="4"
|
||||
SRC_URI="git://github.com/HaikuArchives/FilWip.git#f89df458da79e172ccf243e994b2989d5837c362"
|
||||
REVISION="5"
|
||||
|
||||
LICENSE="SPL"
|
||||
COPYRIGHT="2002 Ramshankar"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
|
||||
PROVIDES="
|
||||
filwip = $portVersion
|
||||
app:FilWip = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++
|
||||
cmd:xres
|
||||
@@ -34,9 +29,8 @@ BUILD_REQUIRES="
|
||||
makefile_engine
|
||||
"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/FilWip_settings
|
||||
"
|
||||
USER_SETTINGS_FILES="settings/FilWip directory keep-old"
|
||||
POST_INSTALL_SCRIPTS="$relativePostInstallDir/install_plugins.sh"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
@@ -46,9 +40,14 @@ BUILD()
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/FilWip
|
||||
|
||||
cp -rf Plugins $appsDir/FilWip/Plugins
|
||||
cp FilWip $appsDir/FilWip/FilWip
|
||||
cp -rf Docs $appsDir/FilWip/Docs
|
||||
cp -a FilWip $appsDir/FilWip
|
||||
|
||||
addAppDeskbarSymlink $appsDir/FilWip/FilWip
|
||||
|
||||
mkdir -p $dataDir/FilWip
|
||||
cp -rf Plugins $dataDir/FilWip/Plugins
|
||||
|
||||
mkdir -p $postInstallDir
|
||||
cp $portDir/additional-files/install_plugins.sh $postInstallDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user