bafx: add rdef with version info, add SHA256, mark x86_64 ok. (#625)

This commit is contained in:
fbrosson
2016-06-04 13:32:45 +00:00
committed by waddlesplash
parent 66ed11bd7c
commit c4fe6ffffe
2 changed files with 35 additions and 7 deletions

View File

@@ -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"
};

View File

@@ -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 \ The file manager is still in early stages of development. A built-in text and \
image viewer are planned for future releases." image viewer are planned for future releases."
HOMEPAGE="https://github.com/marbocub/BAfx" HOMEPAGE="https://github.com/marbocub/BAfx"
COPYRIGHT="2012 marbocub" COPYRIGHT="2012-2014 marbocub"
LICENSE="MIT" LICENSE="MIT"
REVISION="1" REVISION="2"
SOURCE_URI="git+https://github.com/marbocub/BAfx#ebd3db8a22" 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=" PROVIDES="
bafx = $portVersion bafx = $portVersion
@@ -24,8 +28,10 @@ BUILD_REQUIRES="
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
makefile_engine makefile_engine
cmd:gcc cmd:cut
cmd:g++
cmd:make cmd:make
cmd:sed
" "
BUILD() BUILD()
@@ -36,7 +42,19 @@ BUILD()
INSTALL() INSTALL()
{ {
mkdir -p $appsDir install -d -m 755 $appsDir
cp -a objects/BAfx $appsDir install -t $appsDir objects/BAfx
addAppDeskbarSymlink $appsDir/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
} }