1SUMMARY="The all-in-one metadata editor for audio and MPEG files"
2DESCRIPTION="ArmyKnife is an application that lets you edit the metadata of \
3audio and MPEG files, both Haiku file attributes and in-file tags. You can \
4copy data to and from tags and attributes, and rename files according to \
5attributes or fill attributes according to file name.
6Now also with support for cover art!"
7HOMEPAGE="https://github.com/HaikuArchives/ArmyKnife"
8COPYRIGHT="2000-2001 Jason Burgess
9	2008 Jonas Sundstr��m, Ryan Leavengood
10	2009-2022 HaikuArchives team"
11LICENSE="MIT"
12REVISION="2"
13SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
14CHECKSUM_SHA256="cd03e7b12122be86cfdc9663fce6c05b94437fd8f251c17d16ebd63b409fd279"
15SOURCE_DIR="ArmyKnife-$portVersion"
16
17ARCHITECTURES="all ?x86_gcc2"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	armyknife$secondaryArchSuffix = $portVersion
22	app:ArmyKnife = $portVersion
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libmusicbrainz5$secondaryArchSuffix
27	lib:libtag$secondaryArchSuffix
28	"
29
30BUILD_REQUIRES="
31	haiku${secondaryArchSuffix}_devel
32	devel:libmusicbrainz5$secondaryArchSuffix
33	devel:libtag$secondaryArchSuffix
34	"
35BUILD_PREREQUIRES="
36	makefile_engine
37	cmd:g++$secondaryArchSuffix
38	cmd:make
39	"
40
41BUILD()
42{
43	mkdir -p bin
44	make $jobArgs TARGET_DIR=bin
45	make bindcatalogs TARGET_DIR=bin
46}
47
48INSTALL()
49{
50	mkdir -p $appsDir/ArmyKnife/documentation
51
52	cp -r documentation/armyknife $appsDir/ArmyKnife/documentation/
53	cp documentation/changelog.txt $appsDir/ArmyKnife/documentation
54	cp bin/ArmyKnife $appsDir/ArmyKnife
55
56	addAppDeskbarSymlink $appsDir/ArmyKnife/ArmyKnife
57}
58