usbdeskbar-1.0.0.recipe revision df2ac4c8
1SUMMARY="A little tool that notifies when a USB devices is connected or disconnected"
2DESCRIPTION="USB Device Viewer is a status replicant that gives information of \
3connected USB devices and notifies when a USB device is connected or disconnected"
4HOMEPAGE="https://github.com/HaikuArchives/USBDeskbar"
5COPYRIGHT="Vincent Cedric"
6LICENSE="GNU GPL v1"
7REVISION="1"
8SOURCE_URI="https://github.com/HaikuArchives/USBDeskbar/archive/$portVersion.tar.gz"
9CHECKSUM_SHA256="98abdab125140fe427200ec77ca6b443d7b6a3e72782871746942d06338c06e6"
10SOURCE_FILENAME="USBDeskbar-$portVersion.tar.gz"
11SOURCE_DIR="USBDeskbar-$portVersion"
12
13ARCHITECTURES="x86_gcc2 x86_64"
14
15PROVIDES="
16	usbdeskbar = $portVersion
17	app:USBDeskbar = $portVersion
18	"
19REQUIRES="
20	haiku
21	"
22
23BUILD_REQUIRES="
24	haiku_devel
25	"
26BUILD_PREREQUIRES="
27	cmd:g++
28	cmd:make
29	"
30
31BUILD()
32{
33	make $jobArgs
34}
35
36INSTALL()
37{
38	mkdir -p $appsDir
39	cp USBDeskbarView $appsDir/USBDeskbar
40	mimeset -f $appsDir/USBDeskbar
41
42	# Add a symlink to the Desktop applets directory in Deskbar
43	desktopAppletsDir="$dataDir/deskbar/menu/Desktop applets"
44	mkdir -p "$desktopAppletsDir"
45	ln -s $appsDir/USBDeskbar "$desktopAppletsDir"
46}
47