1SUMMARY="An automated file management and sorting system"
2DESCRIPTION="The Filer is a powerful, flexible automatic file organizer. It \
3is an implementation of the 'Sorting Chute' idea conceived on the Glass \
4Elevator mailing list for Haiku.
5
6Filer takes the files it's opened with or that are dropped onto it's icon or \
7replicatable dropzone and moves, renames, copies or does all sorts of other \
8things with them according to rules created by the user.
9
10Filer is accompanied by AutoFiler. Instead of working on a set of files \
11provided by the user, it can be started together with Haiku to monitor certain \
12folders and deal with new files appearing there according to the user-defined \
13rules."
14HOMEPAGE="https://github.com/HaikuArchives/Filer"
15COPYRIGHT="2008 DarkWyrm
16	2016 Humdinger, Pete Goodeve
17	2017 Owen Pan
18	2021 Jaidyn Levesque"
19LICENSE="MIT"
20REVISION="2"
21srcGitRev="93213a29a708e534f0fd93e4c4d39681b5540385"
22SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
23CHECKSUM_SHA256="299434cbfee9d6e0e0e01d3cb5b4ce6a630088c86ab8b9f90ef4a60ba931a260"
24SOURCE_DIR="Filer-$srcGitRev"
25
26ARCHITECTURES="all"
27
28USER_SETTINGS_FILES="
29	settings/Filer directory
30	"
31
32PROVIDES="
33	filer = $portVersion
34	app:AutoFiler = $portVersion
35	app:Filer = $portVersion
36	cmd:Filer = $portVersion
37	"
38REQUIRES="
39	haiku
40	cmd:zip
41	lib:libsqlite3
42	"
43
44BUILD_REQUIRES="
45	haiku_devel
46	devel:libsqlite3
47	"
48BUILD_PREREQUIRES="
49	makefile_engine
50	cmd:g++
51	cmd:make
52	"
53
54BUILD()
55{
56	cd sources
57	make $jobArgs OBJ_DIR=objects
58	make bindcatalogs OBJ_DIR=objects
59	make -f Makefile_AutoFiler $jobArgs OBJ_DIR=objects
60}
61
62INSTALL()
63{
64	mkdir -p $appsDir/Filer $binDir
65	cp -af documentation $appsDir/Filer
66
67	cd sources
68	cp -af objects/Filer $appsDir/Filer
69	ln -s $appsDir/Filer/Filer $binDir
70
71	cp -af objects/AutoFiler $appsDir/Filer
72
73	addAppDeskbarSymlink $appsDir/Filer/Filer
74}
75