Files
haikuports/haiku-apps/filecropper/filecropper-1.recipe
2017-05-18 23:26:35 +02:00

45 lines
1.0 KiB
Bash

SUMMARY="A tool to truncate files of any kind"
DESCRIPTION="FileCropper is a GUI app which truncates files of any kind. It \
cuts off everything from a given offset (bytes) to the end of the file."
HOMEPAGE="https://github.com/HaikuArchives/FileCropper"
COPYRIGHT="2002 Maurice Michalski"
LICENSE="MIT"
REVISION="2"
commit="0dde0f752ad658772d0288a572193ec25b0c3ac8"
SOURCE_URI="https://github.com/HaikuArchives/FileCropper/archive/$commit.tar.gz"
CHECKSUM_SHA256="810b04782f22e7a8184971fe7ace28f51a9b4e5e1d20aea3dc725d250ba54227"
SOURCE_FILENAME="filecropper-$commit.tar.gz"
SOURCE_DIR="FileCropper-$commit"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
PROVIDES="
filecropper = $portVersion
app:FileCropper = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:g++
cmd:xres
"
BUILD()
{
g++ app.cpp mainWindow.cpp -lbe -o FileCropper
xres -o FileCropper FileCropper.rsrc
mimeset -f FileCropper
}
INSTALL()
{
mkdir -p $appsDir
cp FileCropper $appsDir
addAppDeskbarSymlink $appsDir/FileCropper
}