0
0
Fork 0
haikuports/haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe

47 lines
1.1 KiB
Bash

SUMMARY="A little tool that notifies when a USB devices is connected or disconnected"
DESCRIPTION="USB Device Viewer is a status replicant that gives information of \
connected USB devices and notifies when a USB device is connected or disconnected"
HOMEPAGE="https://github.com/HaikuArchives/USBDeskbar"
COPYRIGHT="Vincent Cedric"
LICENSE="GNU GPL v1"
REVISION="1"
SOURCE_URI="https://github.com/HaikuArchives/USBDeskbar/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="98abdab125140fe427200ec77ca6b443d7b6a3e72782871746942d06338c06e6"
SOURCE_FILENAME="USBDeskbar-$portVersion.tar.gz"
SOURCE_DIR="USBDeskbar-$portVersion"
ARCHITECTURES="all"
PROVIDES="
usbdeskbar = $portVersion
app:USBDeskbar = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:g++
cmd:make
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
cp USBDeskbarView $appsDir/USBDeskbar
mimeset -f $appsDir/USBDeskbar
# Add a symlink to the Desktop applets directory in Deskbar
desktopAppletsDir="$dataDir/deskbar/menu/Desktop applets"
mkdir -p "$desktopAppletsDir"
ln -s $appsDir/USBDeskbar "$desktopAppletsDir"
}