From 43bf9a6553c88097e374c30a314078b8ad7bd942 Mon Sep 17 00:00:00 2001 From: IFoundSilentHouse Date: Tue, 19 Mar 2024 02:12:13 +0600 Subject: [PATCH] New package: helio-sequencer-3.12 New package: helio-sequencer --- srcpkgs/helio-sequencer/template | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 srcpkgs/helio-sequencer/template diff --git a/srcpkgs/helio-sequencer/template b/srcpkgs/helio-sequencer/template new file mode 100644 index 00000000000000..6ae40e33b3fc0a --- /dev/null +++ b/srcpkgs/helio-sequencer/template @@ -0,0 +1,51 @@ +# Template file for 'helio-sequencer' +pkgname=helio-sequencer +version=3.12 +_gitrev="61f7db380f083b424418d65f4e26addc1370ddea" +revision=1 +archs="i686* x86_64* aarch64* armv[67]*" +hostmakedepends="git pkg-config" +makedepends="freetype-devel libX11-devel libXinerama-devel libXrandr-devel libXcursor-devel libXcomposite-devel MesaLib-devel libfreeglut-devel libcurl-devel alsa-lib-devel jack-devel libsigc++-devel" +depends="curl freetype libXinerama libglvnd alsa-lib" +short_desc="One music sequencer for all major platforms, desktop and mobile" +maintainer="IFoundSilentHouse " +license="GPL-3.0-or-later" +homepage="https://helio.fm/" +changelog="https://github.com/helio-fm/helio-sequencer/blob/develop/CHANGELOG.md" + +do_fetch() { + # commit 61f7db3 is a commit of stable version 3.12 + # helio-sequencer has thirdparty repos in its' github + # so we have to use this do_fetch() hack + git clone --recursive https://github.com/helio-fm/helio-sequencer.git $wrksrc + cd $wrksrc + git reset --hard ${_gitrev} +} + +do_build() { + case "$XBPS_TARGET_MACHINE" in + i686*|armv[67]*) export CONFIG=Release32 ;; + x86_64*|aarch64*) export CONFIG=Release64 ;; + esac + cd $wrksrc/Projects/LinuxMakefile/ + make all strip + cd $wrksrc/Docs +} + +do_install() { + cd $wrksrc + vbin Projects/LinuxMakefile/build/helio +} + +post_install() { + cd $wrksrc + vinstall Projects/Deployment/Linux/Debian/x64/usr/share/applications/Helio.desktop 644 usr/share/applications + cd $wrksrc/Projects/Deployment/Linux/Debian/x64/usr/share/icons/hicolor/ + vmkdir usr/share/icons/hicolor/ + for _i in 16 32 48 128 256; do + vinstall ${_i}x${_i}/apps/helio-workstation.png 644 usr/share/icons/hicolor/${_i}x${_i}/apps helio-workstation.png + done + cd $wrksrc + vlicense LICENSE +} +