Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
extrowerk authored and Begasus committed Oct 23, 2024
1 parent 8b3d7c7 commit 0d8aa86
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 33 deletions.
2 changes: 1 addition & 1 deletion generic/additional-files/projectx.rdef.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource app_version {
variety = B_APPV_FINAL,
internal = 0,

short_info = "Audacious",
short_info = "Project X",
long_info = "@LONG_INFO@"
};

Expand Down
13 changes: 6 additions & 7 deletions generic/generic_cmd-1.2.3.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ SOURCE_URI="https://github.com/HaikuArchives/ProjectX/archive/projectx-$portVers
CHECKSUM_SHA256="000000000000000000000000000000000"
SOURCE_DIR="$portVersionedName"
PATCHES="projectx-$portVersion.patchset"
ADDITIONAL_FILES="projectx.rdef"

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
ARCHITECTURES="?all"

GLOBAL_WRITABLE_FILES="
settings/projectx.conf keep-old
"

PROVIDES="
projectx = $portVersion
Expand All @@ -35,12 +38,8 @@ BUILD_PREREQUIRES="
cmd:gcc
"

GLOBAL_WRITABLE_FILES="
settings/projectx.conf keep-old
"

defineDebugInfoPackage projectx \
"$commandBinDir"/projectx
"$binDir"/projectx

BUILD()
{
Expand Down
19 changes: 9 additions & 10 deletions generic/generic_cmd_secondary_arch-1.2.3.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ SOURCE_URI="https://github.com/HaikuArchives/ProjectX/archive/projectx-$portVers
CHECKSUM_SHA256="000000000000000000000000000000000"
SOURCE_DIR="$portVersionedName"
PATCHES="projectx-$portVersion.patchset"
ADDITIONAL_FILES="projectx.rdef"

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
ARCHITECTURES="?all ?x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"

# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
Expand All @@ -28,24 +27,24 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi

GLOBAL_WRITABLE_FILES="
settings/projectx.conf keep-old
"

PROVIDES="
projectx = $portVersion
projectx$secondaryArchSuffix = $portVersion
cmd:projectx$commandSuffix = $portVersion
"
REQUIRES="
haiku
haiku$secondaryArchSuffix
"

BUILD_REQUIRES="
haiku_devel
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"

GLOBAL_WRITABLE_FILES="
settings/projectx.conf keep-old
cmd:gcc$secondaryArchSuffix
"

defineDebugInfoPackage projectx \
Expand Down
20 changes: 5 additions & 15 deletions generic/generic_font-1.2.3.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,14 @@ DISABLE_SOURCE_PACKAGE=yes
PROVIDES="
generic_font = $portVersion
"
REQUIRES="
"

BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
"
REQUIRES=""

BUILD()
{
: # means nothing.
}
BUILD_REQUIRES=""
BUILD_PREREQUIRES=""

INSTALL()
{
FONTDIR=$fontsDir/ttfonts
install -d ${FONTDIR}
install -t ${FONTDIR} generic-font1.ttf
install -t ${FONTDIR} generic-font2.ttf
install -t ${FONTDIR} generic-font-bold.ttf
mkdir -p ${FONTDIR}
cp -a *.ttf ${FONTDIR}
}

0 comments on commit 0d8aa86

Please sign in to comment.