SUMMARY="A freeware notepad program, similar to Apple's Notepad app"
DESCRIPTION="Pad is a freeware notepad program. Anyone who has used Apple's \
Notepad app (included with the system software) should find it familiar. \
It supports multiple pages, the standard text editing commands \
(Cut, Copy, Paste), as well as Drag 'n' Drop editing."
HOMEPAGE="https://github.com/HaikuArchives/Pad"
COPYRIGHT="1997 Jesse Hall"
LICENSE="Pad"
REVISION="1"
srcGitRev="cfefca443dbfb46ec85ebd37ecf34258b2ba30ae"
SOURCE_URI="https://github.com/HaikuArchives/Pad/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="43ca4a5250a8e830c60cd72da8c82c9d9ecad17df1de4b54428687b38ce9ff3c"
SOURCE_FILENAME="Pad-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="Pad-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	pad = $portVersion
	app:pad = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp Pad $appsDir
	addAppDeskbarSymlink $appsDir/Pad
}