USBDeskbar: add recipe

This commit is contained in:
Gerasim Troeglazov
2019-08-22 22:39:20 +10:00
parent f3720b8d40
commit df2ac4c8b2

View File

@@ -0,0 +1,46 @@
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="x86_gcc2 x86_64"
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"
}