From df2ac4c8b217d7a47fca3123a37434265f3d54d9 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Thu, 22 Aug 2019 22:39:20 +1000 Subject: [PATCH] USBDeskbar: add recipe --- haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe diff --git a/haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe b/haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe new file mode 100644 index 000000000..99fc0e34d --- /dev/null +++ b/haiku-apps/usbdeskbar/usbdeskbar-1.0.0.recipe @@ -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" +}