1SUMMARY="Graphical interface to run the zip command"
2DESCRIPTION="This application makes it easy to create and update backups of \
3large amounts of data.  For example, you can create a backup of your home \
4directory and run this application regularly to make sure the backup is up to \
5date.  SimpleBackup also accepts command line options, so it is easily \
6scriptable and can be used with scheduling applications."
7HOMEPAGE="https://perelandra0x309.github.io/simplebackup"
8COPYRIGHT="2010-2016 Brian Hill"
9LICENSE="BSD (3-clause)"
10REVISION="1"
11SOURCE_URI="https://github.com/Perelandra0x309/simplebackup/archive/v$portVersion.tar.gz"
12CHECKSUM_SHA256="463df905df35a74e81127d1c28d20a1f2c94ff1b89f6939abf081ecc70e60c62"
13
14ARCHITECTURES="x86_gcc2 !x86"
15
16USER_SETTINGS_FILES="settings/SimpleBackup directory"
17
18PROVIDES="
19	simplebackup = $portVersion
20	app:SimpleBackup = $portVersion
21	cmd:SBQueue = $portVersion
22	"
23REQUIRES="
24	haiku
25	"
26
27BUILD_REQUIRES="
28	haiku_devel
29	"
30BUILD_PREREQUIRES="
31	makefile_engine
32	cmd:g++
33	cmd:make
34	"
35
36BUILD()
37{
38	cd src
39	make
40}
41
42INSTALL()
43{
44	mkdir -p $appsDir/SimpleBackup
45	mkdir -p $binDir
46
47	# copy documentation
48	cp -af ReadMe License $appsDir/SimpleBackup
49
50	# copy executables
51	cp -af SimpleBackup $appsDir/SimpleBackup
52	cp -af SBQueue $binDir
53
54	# copy example files
55	cp -af home_backup_settings backup_example.sh $appsDir/SimpleBackup
56	chmod +x $appsDir/SimpleBackup/backup_example.sh
57
58	# deskbar link
59	addAppDeskbarSymlink $appsDir/SimpleBackup/SimpleBackup
60}
61