diff --git a/haiku-apps/bafx/additional-files/bafx.rdef b/haiku-apps/bafx/additional-files/bafx.rdef new file mode 100644 index 000000000..5a41d944b --- /dev/null +++ b/haiku-apps/bafx/additional-files/bafx.rdef @@ -0,0 +1,10 @@ + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + variety = B_APPV_FINAL, + internal = 0, + short_info = "BAfx file manager", + long_info = "BAfx file manager © 2012-2014 marbocub" +}; diff --git a/haiku-apps/bafx/bafx-0.2.3.recipe b/haiku-apps/bafx/bafx-0.2.3.recipe index 84e118fdf..f5314add7 100644 --- a/haiku-apps/bafx/bafx-0.2.3.recipe +++ b/haiku-apps/bafx/bafx-0.2.3.recipe @@ -4,12 +4,16 @@ with two panes for source and destination folder. The file manager is still in early stages of development. A built-in text and \ image viewer are planned for future releases." HOMEPAGE="https://github.com/marbocub/BAfx" -COPYRIGHT="2012 marbocub" +COPYRIGHT="2012-2014 marbocub" LICENSE="MIT" -REVISION="1" -SOURCE_URI="git+https://github.com/marbocub/BAfx#ebd3db8a22" +REVISION="2" +srcGitRev="ebd3db8a2231618f649bfb1215f6c8d209c73315" +SOURCE_URI="https://github.com/marbocub/BAfx/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="e904b5509e40eb0a860b50da9c8685492ea9288f1130ce7036cb2bfc48b4568d" +SOURCE_DIR="BAfx-$srcGitRev" +ADDITIONAL_FILES="bafx.rdef" -ARCHITECTURES="x86_gcc2 x86 ?x86_64" +ARCHITECTURES="x86_gcc2 x86 x86_64" PROVIDES=" bafx = $portVersion @@ -24,8 +28,10 @@ BUILD_REQUIRES=" " BUILD_PREREQUIRES=" makefile_engine - cmd:gcc + cmd:cut + cmd:g++ cmd:make + cmd:sed " BUILD() @@ -36,7 +42,19 @@ BUILD() INSTALL() { - mkdir -p $appsDir - cp -a objects/BAfx $appsDir + install -d -m 755 $appsDir + install -t $appsDir objects/BAfx addAppDeskbarSymlink $appsDir/BAfx + + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + sed \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + $portDir/additional-files/bafx.rdef > bafx.rdef + + addResourcesToBinaries bafx.rdef \ + $appsDir/BAfx }