mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
nicotineplus: initial commit (#12475)
* nicotineplus: initial commit * Fixed architectures, python versions and for loop * Update net-p2p/nicotineplus/nicotineplus-3.3.10.recipe Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com> * Just make one package depending on the default Python version --------- Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com>
This commit is contained in:
45
net-p2p/nicotineplus/additional-files/nicotineplus.rdef.in
Normal file
45
net-p2p/nicotineplus/additional-files/nicotineplus.rdef.in
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Nicotine+",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660203D38C2D03F9AA4002022C2628262826382658264826C986B59FC9"
|
||||
$"E0B579C9B9B5C6CA06285AB5F95A2A5A2E5A2C5AB8CA5AB924C9E0B8FDCA06B9"
|
||||
$"4AC9B9305830C98630C443303230BF38B9A3323232B9E832BA9C32BBC2BA40BB"
|
||||
$"54BA27BC96BA6FBD47BBC5BD18BAF1BD60BC333A3A3ABCEB3A443A583A4E3AC9"
|
||||
$"86BD97C9E0BD71C9B9BDBECA063C5ABDF15A3E5A425A405AC0C25AC11CC9E0C0"
|
||||
$"F5CA06C142C9B9445844C986445644524454C268524C52C377524C544C584C56"
|
||||
$"4CC986C4C3C9E0C49DC9B9C4EACA064E5AC51D5A505A545A525AC7EE5AC848C9"
|
||||
$"E0C821CA06C86EC9B9565856C98656565652565458525C525A52CB1E52CB78C6"
|
||||
$"B0CB51C6D6CB9EC6895E505EC6565E4E5E4A5E4CCB6FC3775C48CB2CC3345A48"
|
||||
$"5648584856C1DF564056C0D0C83FBF7C543EC7FCBF37523E4E3E503EC50FBF37"
|
||||
$"4C40C4CCBF7C4CC0D04C484CC1DFC377484448C2684844C113443A44BF37BF37"
|
||||
$"BAB43426BD18B80B302628262C26B5ECB5A72628B5A7B5EC2628262826282628"
|
||||
$"02322628262826BC4B265626C26826C8BAB59FC914B579C8EDB5C6C93A2858B5"
|
||||
$"F9582A582E582C58B8CA58B924C914B8FDC93AB94AC8ED305630C8BA30C37730"
|
||||
$"3030BE6CB9A3303230B9E830BA9C30BBC2B974BB54B95BBC96B9A3BD47BAF9BD"
|
||||
$"18BA25BD60BB673A383ABC1F3A423A563A4C3AC8BABD97C914BD71C8EDBDBEC9"
|
||||
$"3A3C58BDF1583E5842584058C0C258C11CC914C0F5C93AC142C8ED445644C8BA"
|
||||
$"445444504452C268504C50C377504C524C564C544CC8BAC4C3C914C49DC8EDC4"
|
||||
$"EAC93A4E58C51D58505854585258C7EE58C848C914C821C93AC86EC8ED565656"
|
||||
$"C8BA56545650565258505C505A50CB1E50CB78C5E4CB51C60ACB9EC5BD5E4E5E"
|
||||
$"C58A5EC4CC5E4A5EC4435EC385CB78C32BCB9EC352CB51C3055C48CB1E485A48"
|
||||
$"5648584856C1DF564056C0D056BF89C848BF2FC86EBF56C821BF09543EC7EE3E"
|
||||
$"523E4E3E503EC51D3EC4C3BF2FC4EABF09C49DBF564C404CBF894CC0D04C484C"
|
||||
$"C1DFC377484448C2684844C0D0443844BEB044BC1FC14B34C159BB68C0F9B856"
|
||||
$"BC8FB575BF16B5E3BC20B5623426BB6826302628262C26B5F926B59FB59FB5C6"
|
||||
$"B579B579B5C6262826B5F92628262826282628020A000100000A01010100"
|
||||
};
|
||||
84
net-p2p/nicotineplus/nicotineplus-3.3.10.recipe
Normal file
84
net-p2p/nicotineplus/nicotineplus-3.3.10.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="A graphical client for the Soulseek P2P network"
|
||||
DESCRIPTION="Nicotine+ aims to be a lightweight, pleasant, free and open source (FOSS) \
|
||||
alternative to the official Soulseek client, while also providing a comprehensive set of features."
|
||||
HOMEPAGE="https://nicotine-plus.org/"
|
||||
COPYRIGHT="2001–2025 Nicotine+, Nicotine and PySoulSeek Contributors"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/nicotine-plus/nicotine-plus/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3917ebc562f2d6a6b26b3d815d7cbdf1d11c058d994b1f47794bbb850489b35e"
|
||||
SOURCE_DIR="nicotine-plus-$portVersion"
|
||||
ADDITIONAL_FILES="nicotineplus.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
pythonVersion=3.10
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
app:Nicotine+
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
lib:libgtk_3$secondaryArchSuffix
|
||||
pygobject_$pythonPackage
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
python=python$pythonVersion
|
||||
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
mkdir -p $dataRootDir
|
||||
mv $prefix/share/* $dataRootDir
|
||||
rmdir $prefix/share
|
||||
|
||||
# cleanup
|
||||
rm -rf $dataDir/{applications,metainfo}
|
||||
|
||||
mkdir -p $appsDir
|
||||
mv $prefix/bin/nicotine $appsDir/Nicotine+
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.nicotineplus"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/nicotineplus.rdef.in > nicotineplus.rdef
|
||||
|
||||
settype -t application/x-vnd.Be-elfexecutable \
|
||||
$appsDir/Nicotine+
|
||||
# Installing extra-attribs
|
||||
rc nicotineplus.rdef
|
||||
resattr -o $appsDir/Nicotine+ \
|
||||
nicotineplus.rsrc
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Nicotine+
|
||||
}
|
||||
Reference in New Issue
Block a user