From 8cb903b956bcc9cac6716997aa2d0d75d1c8a85c Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Mon, 16 Aug 2021 04:56:43 -0500 Subject: [PATCH] purple_discord: add recipe (#6133) --- .../purple_discord-20210729.recipe | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 net-im/purple_discord/purple_discord-20210729.recipe diff --git a/net-im/purple_discord/purple_discord-20210729.recipe b/net-im/purple_discord/purple_discord-20210729.recipe new file mode 100644 index 000000000..a378cfaf9 --- /dev/null +++ b/net-im/purple_discord/purple_discord-20210729.recipe @@ -0,0 +1,57 @@ +SUMMARY="Discord plugin for libpurple" +DESCRIPTION="A plugin giving support for Discord, a popular chat service, to \ +libpurple." +HOMEPAGE="https://github.com/EionRobb/purple-discord" +COPYRIGHT="2016 Eion Robb et al." +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="6c5a7788a9d2683513540f828b4488e8d4b6b782" +SOURCE_URI="https://github.com/EionRobb/purple-discord/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="ec31d2d554bda70d35eb36bb1d6e71324b880d8d3ee8fa58c872a68329af6612" +SOURCE_FILENAME="$srcGitRev.tar.gz" +SOURCE_DIR="purple-discord-$srcGitRev" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + purple_discord$secondaryArchSuffix = $srcGitRev + lib:purple_discord$secondaryArchSuffix = $srcGitRev + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libjson_glib_1.0$secondaryArchSuffix + lib:libpurple$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libglib_2.0$secondaryArchSuffix + devel:libjson_glib_1.0$secondaryArchSuffix + devel:libpurple$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:convert + cmd:gcc$secondaryArchSuffix + cmd:gettext + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:sed + " + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + make install \ + DISCORD_DEST="$libDir/purple-2" \ + DISCORD_ICONS_DEST="$dataDir/pixmaps/pidgin/protocols" \ + LOCALEDIR="$dataDir/locale" +}