From 3a5b963906386d3cb7d8d4fc1854ff730f512e68 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Tue, 23 Jun 2020 01:02:33 -0500 Subject: [PATCH 1/7] Add final flatpak build --- flatpak/README.md | 10 + flatpak/audio-libs.json | 41 ++++ flatpak/org.gmusicbrowser.gmusicbrowser.json | 37 ++++ flatpak/perl-libs.json | 218 +++++++++++++++++++ 4 files changed, 306 insertions(+) create mode 100644 flatpak/README.md create mode 100644 flatpak/audio-libs.json create mode 100644 flatpak/org.gmusicbrowser.gmusicbrowser.json create mode 100644 flatpak/perl-libs.json diff --git a/flatpak/README.md b/flatpak/README.md new file mode 100644 index 00000000..652c83a5 --- /dev/null +++ b/flatpak/README.md @@ -0,0 +1,10 @@ +# gmusicbrowser Flatpack Manifest + +### To build +`flatpak-builder build-dir org.gmusicbrowser.gmusicbrowser.json` + +### To Test run +`flatpak-builder --run build-dir org.gmusicbrowser.gmusicbrowser.json gmusicbrowser` + +### To Package +`flatpak-builder --repo=repo --force-clean build-dir org.gmusicbrowser.gmusicbrowser.json` diff --git a/flatpak/audio-libs.json b/flatpak/audio-libs.json new file mode 100644 index 00000000..79afb9c2 --- /dev/null +++ b/flatpak/audio-libs.json @@ -0,0 +1,41 @@ +{ + "name": "audio-libs", + "modules": [ + { + "name": "mpg123", + "buildsystem": "autotools", + "sources": [{ + "type": "archive", + "url": "https://iweb.dl.sourceforge.net/project/mpg123/mpg123/1.26.1/mpg123-1.26.1.tar.bz2", + "sha256": "74d6629ab7f3dd9a588b0931528ba7ecfa989a2cad6bf53ffeef9de31b0fe032" + }] + }, + { + "name": "libao", + "buildsystem": "autotools", + "sources": [{ + "type": "archive", + "url": "http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz", + "sha256": "03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf" + }] + }, + { + "name": "flac123", + "buildsystem": "autotools", + "sources": [{ + "type": "archive", + "url": "https://master.dl.sourceforge.net/project/flac-tools/flac123/0.0.11/flac123-0.0.11.tar.gz", + "sha256": "2f96da02c28730fcc2c71e9e6975268a4b01b0a298f1bea58a5543192f972b66" + }] + }, + { + "name": "vorbis-tools", + "buildsystem": "autotools", + "sources": [{ + "type": "archive", + "url": "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz", + "sha256": "a389395baa43f8e5a796c99daf62397e435a7e73531c9f44d9084055a05d22bc" + }] + } + ] +} diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json new file mode 100644 index 00000000..e125ccb7 --- /dev/null +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -0,0 +1,37 @@ +{ + "app-id": "org.gmusicbrowser.gmusicbrowser", + "runtime": "org.gnome.Platform", + "runtime-version": "3.36", + "sdk": "org.gnome.Sdk", + "command": "gmusicbrowser", + "finish-args": [ + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--share=network", + "--filesystem=xdg-music", + "--socket=pulseaudio", + "--socket=session-bus", + "--env=PERL5LIB=/app/lib" + ], + "build-options" : { + "env": {"PERL5LIB": "/app/lib"} + }, + "modules": [ + "audio-libs.json", + "perl-libs.json", + { + "name": "gmusicbrowser", + "buildsystem": "simple", + "build-commands": [ + "sed -i 's|#!/usr/bin/perl|#!/bin/env perl|g' gmusicbrowser.pl", + "make install prefix='/app'" + ], + "sources": [{ + "type": "git", + "url": "https://github.com/BeatLink/gmusicbrowser.git", + "branch": "make-executable-portable" + }] + } + ] +} diff --git a/flatpak/perl-libs.json b/flatpak/perl-libs.json new file mode 100644 index 00000000..cd93230d --- /dev/null +++ b/flatpak/perl-libs.json @@ -0,0 +1,218 @@ +{ + "name": "perl-libs", + "modules": [ + { + "name": "perl", + "no-autogen": true, + "config-opts": [ + "-des", + "-Duseshrplib" + ], + "build-options": { + "cflags": "-fPIC", + "ldflags": "-fpic" + }, + "post-install": [ + "find ${FLATPAK_DEST}/lib/perl5/ -name \\*.so -exec chmod u+w {} \\;" + ], + "cleanup": [ + "/man", + "*.pod", + "*.h" + ], + "sources": [ + { + "type": "archive", + "url": "https://www.cpan.org/src/5.0/perl-5.30.1.tar.gz", + "sha256": "bf3d25571ff1ee94186177c2cdef87867fd6a14aa5a84f0b1fb7bf798f42f964" + }, + { + "type": "script", + "dest-filename": "configure", + "commands": [ + "exec ./configure.gnu $@" + ] + } + ] + }, + { + "name": "perl-ExtUtils-Depends", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/ExtUtils-Depends-0.8000.tar.gz", + "sha256": "780ff72128c04c2a22e6801187aa9c58cab298407f6e9d062706af1c250bbe98" + }] + }, + { + "name": "perl-ExtUtils-PkgConfig", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/ExtUtils-PkgConfig-1.16.tar.gz", + "sha256": "bbeaced995d7d8d10cfc51a3a5a66da41ceb2bc04fedcab50e10e6300e801c6e" + }] + }, + { + "name": "perl-glib", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Glib/Glib.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-1.3293.tar.gz", + "sha256": "7316a0c1e7cc5cb3db7211214f45d7bdc2354365a680ac4bd3ac8bf06d1cb500" + }] + }, + { + "name": "perl-Glib-Object-Introspection", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Glib/Object/Introspection/Introspection.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-Object-Introspection-0.048.tar.gz", + "sha256": "a64f100c21b884616669255d90fcaf1d11a51cde6ff3f3edcb835a920d2fbd05" + }] + }, + { + "name": "perl-cairo", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Cairo/Cairo.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Cairo-1.107.tar.gz", + "sha256": "5e1de126ddf93bd5b13f13a52f50d7f7af1157265b7f10e53d585ee1827be169" + }] + }, + { + "name": "perl-cairo-gobject", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Cairo/GObject/GObject.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Cairo-GObject-1.005.tar.gz", + "sha256": "8d896444d71e1d0bca3d24e31e5d82bd0d9542aaed91d1fb7eab367bce675c50" + }] + }, + { + "name": "perl-pango", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make test", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Pango/Pango.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Pango-1.227.tar.gz", + "sha256": "34b0a422df3fecd7597587048552457d48ae764c43bbefd2a9d62ceb6c8bac71" + }] + }, + { + "name": "perl-gtk3", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/X/XA/XAOC/Gtk3-0.037.tar.gz", + "sha256": "bf5ae1547294a78ca8ba5a88cb20f99a16e4c82bed55446aa054c944918e3f51" + }] + }, + { + "name": "perl-net-dbus", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/Net/DBus/DBus.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Net-DBus-1.2.0.tar.gz", + "sha256": "e7a1ac9ef4a1235b3fdbd5888f86c347182306467bd79abc9b0756a64b441cbc" + }] + }, + { + "name": "perl-xml-twig", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/M/MI/MIROD/XML-Twig-3.52.tar.gz", + "sha256": "fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad" + }] + }, + { + "name": "perl-xml-parser", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install", + "chmod 755 /app/lib/x86_64-linux/auto/XML/Parser/Expat/Expat.so" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz", + "sha256": "d331332491c51cccfb4cb94ffc44f9cd73378e618498d4a37df9e043661c515d" + }] + }, + { + "name": "markdown", + "buildsystem": "simple", + "build-commands": [ + "install -D Markdown.pl /app/bin/markdown" + ], + "sources": [{ + "type": "file", + "url": "https://sources.debian.org/data/main/m/markdown/1.0.1-10/Markdown.pl", + "sha256": "764d57b96a35c48d9e3c4ec4c5c3492cff49f365a3f30e1eed71dc66d50e0c85" + }] + } + ] +} From 69ab89952fca47b5d10caa237e5435e35f058b50 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Tue, 30 Jun 2020 04:58:20 -0500 Subject: [PATCH 2/7] Fix Repo URL --- flatpak/org.gmusicbrowser.gmusicbrowser.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index e125ccb7..dff6d52e 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -29,8 +29,8 @@ ], "sources": [{ "type": "git", - "url": "https://github.com/BeatLink/gmusicbrowser.git", - "branch": "make-executable-portable" + "url": "https://github.com/squentin/gmusicbrowser.git", + "commit": "547b6312c9be7647ae5e7f55eb4d7fbf2cd49b8e" }] } ] From 11ea05242cc1be488018208a04ff36afeae276f3 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Sat, 4 Jul 2020 16:21:02 -0500 Subject: [PATCH 3/7] Add appdata file renaming --- flatpak/org.gmusicbrowser.gmusicbrowser.json | 1 + 1 file changed, 1 insertion(+) diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index dff6d52e..e5ed65e4 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -3,6 +3,7 @@ "runtime": "org.gnome.Platform", "runtime-version": "3.36", "sdk": "org.gnome.Sdk", + "rename-appdata-file": "gmusicbrowser.appdata.xml", "command": "gmusicbrowser", "finish-args": [ "--share=ipc", From a6a678d42aac36b89c48dcc6b6d9b6f0bfa9fa9e Mon Sep 17 00:00:00 2001 From: BeatLink Date: Sat, 4 Jul 2020 16:25:19 -0500 Subject: [PATCH 4/7] Update Desktop file and Icon --- flatpak/org.gmusicbrowser.gmusicbrowser.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index e5ed65e4..87da6c6e 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -4,6 +4,8 @@ "runtime-version": "3.36", "sdk": "org.gnome.Sdk", "rename-appdata-file": "gmusicbrowser.appdata.xml", + "rename-desktop-file": "gmusicbrowser.desktop", + "rename-icon": "gmusicbrowser", "command": "gmusicbrowser", "finish-args": [ "--share=ipc", From 171d358b8c917f8c2740faae9fdf9cedb28fad83 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Sat, 4 Jul 2020 17:15:20 -0500 Subject: [PATCH 5/7] Upload changes from flathub review --- flatpak/org.gmusicbrowser.gmusicbrowser.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index 87da6c6e..ebc34ab3 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -3,18 +3,17 @@ "runtime": "org.gnome.Platform", "runtime-version": "3.36", "sdk": "org.gnome.Sdk", + "command": "gmusicbrowser", "rename-appdata-file": "gmusicbrowser.appdata.xml", "rename-desktop-file": "gmusicbrowser.desktop", "rename-icon": "gmusicbrowser", - "command": "gmusicbrowser", "finish-args": [ "--share=ipc", - "--socket=x11", + "--socket=fallback-x11", "--socket=wayland", "--share=network", "--filesystem=xdg-music", "--socket=pulseaudio", - "--socket=session-bus", "--env=PERL5LIB=/app/lib" ], "build-options" : { @@ -27,6 +26,8 @@ "name": "gmusicbrowser", "buildsystem": "simple", "build-commands": [ + "sed -i '7i\ ' gmusicbrowser.appdata.xml", + "sed -i '34i\ \n \n ' gmusicbrowser.appdata.xml", "sed -i 's|#!/usr/bin/perl|#!/bin/env perl|g' gmusicbrowser.pl", "make install prefix='/app'" ], From 419acec8f504886dabc06da9b88c479358acce6a Mon Sep 17 00:00:00 2001 From: BeatLink Date: Tue, 7 Jul 2020 08:30:32 -0500 Subject: [PATCH 6/7] Upload final functional flatpak build --- flatpak/audio-libs.json | 28 +++++++------ flatpak/org.gmusicbrowser.gmusicbrowser.json | 7 +++- flatpak/perl-libs.json | 42 +++++++++++++------- 3 files changed, 49 insertions(+), 28 deletions(-) diff --git a/flatpak/audio-libs.json b/flatpak/audio-libs.json index 79afb9c2..06ba0dcd 100644 --- a/flatpak/audio-libs.json +++ b/flatpak/audio-libs.json @@ -1,19 +1,10 @@ { "name": "audio-libs", "modules": [ - { - "name": "mpg123", - "buildsystem": "autotools", - "sources": [{ - "type": "archive", - "url": "https://iweb.dl.sourceforge.net/project/mpg123/mpg123/1.26.1/mpg123-1.26.1.tar.bz2", - "sha256": "74d6629ab7f3dd9a588b0931528ba7ecfa989a2cad6bf53ffeef9de31b0fe032" - }] - }, { "name": "libao", "buildsystem": "autotools", - "sources": [{ + "sources": [{ "type": "archive", "url": "http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz", "sha256": "03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf" @@ -22,7 +13,7 @@ { "name": "flac123", "buildsystem": "autotools", - "sources": [{ + "sources": [{ "type": "archive", "url": "https://master.dl.sourceforge.net/project/flac-tools/flac123/0.0.11/flac123-0.0.11.tar.gz", "sha256": "2f96da02c28730fcc2c71e9e6975268a4b01b0a298f1bea58a5543192f972b66" @@ -31,10 +22,23 @@ { "name": "vorbis-tools", "buildsystem": "autotools", - "sources": [{ + "sources": [{ "type": "archive", "url": "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz", "sha256": "a389395baa43f8e5a796c99daf62397e435a7e73531c9f44d9084055a05d22bc" + }, + { + "type": "shell", + "commands": ["cp -p /usr/share/automake-*/config.{sub,guess} ."] + }] + }, + { + "name": "mpg123", + "buildsystem": "autotools", + "sources": [{ + "type": "archive", + "url": "https://iweb.dl.sourceforge.net/project/mpg123/mpg123/1.26.1/mpg123-1.26.1.tar.bz2", + "sha256": "74d6629ab7f3dd9a588b0931528ba7ecfa989a2cad6bf53ffeef9de31b0fe032" }] } ] diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index ebc34ab3..43655f7f 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -14,6 +14,9 @@ "--share=network", "--filesystem=xdg-music", "--socket=pulseaudio", + "--own-name=org.gmusicbrowser", + "--own-name=org.gmusicbrowser.gmusicbrowser", + "--own-name=org.mpris.MediaPlayer2.gmusicbrowser", "--env=PERL5LIB=/app/lib" ], "build-options" : { @@ -26,8 +29,8 @@ "name": "gmusicbrowser", "buildsystem": "simple", "build-commands": [ - "sed -i '7i\ ' gmusicbrowser.appdata.xml", - "sed -i '34i\ \n \n ' gmusicbrowser.appdata.xml", + "sed -i '7i\\ ' gmusicbrowser.appdata.xml", + "sed -i '34i\\ \\n \\n ' gmusicbrowser.appdata.xml", "sed -i 's|#!/usr/bin/perl|#!/bin/env perl|g' gmusicbrowser.pl", "make install prefix='/app'" ], diff --git a/flatpak/perl-libs.json b/flatpak/perl-libs.json index cd93230d..8e03b4f2 100644 --- a/flatpak/perl-libs.json +++ b/flatpak/perl-libs.json @@ -72,8 +72,10 @@ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", "make test", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Glib/Glib.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -88,8 +90,10 @@ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", "make test", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Glib/Object/Introspection/Introspection.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -104,8 +108,10 @@ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", "make test", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Cairo/Cairo.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -119,8 +125,10 @@ "build-commands": [ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Cairo/GObject/GObject.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -135,8 +143,10 @@ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", "make test", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Pango/Pango.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -164,8 +174,10 @@ "build-commands": [ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/Net/DBus/DBus.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", @@ -193,8 +205,10 @@ "build-commands": [ "perl Makefile.PL PREFIX=/app LIB=/app/lib", "make", - "make install", - "chmod 755 /app/lib/x86_64-linux/auto/XML/Parser/Expat/Expat.so" + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" ], "sources": [{ "type": "archive", From c46fc517cef09cdd55b00ea8a0c98900877b611a Mon Sep 17 00:00:00 2001 From: BeatLink Date: Mon, 13 Jul 2020 21:29:17 -0500 Subject: [PATCH 7/7] Final Changes (Can be merged) --- flatpak/org.gmusicbrowser.gmusicbrowser.json | 1 + flatpak/perl-libs.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/flatpak/org.gmusicbrowser.gmusicbrowser.json b/flatpak/org.gmusicbrowser.gmusicbrowser.json index 43655f7f..85d9d77a 100644 --- a/flatpak/org.gmusicbrowser.gmusicbrowser.json +++ b/flatpak/org.gmusicbrowser.gmusicbrowser.json @@ -7,6 +7,7 @@ "rename-appdata-file": "gmusicbrowser.appdata.xml", "rename-desktop-file": "gmusicbrowser.desktop", "rename-icon": "gmusicbrowser", + "copy-icon": true, "finish-args": [ "--share=ipc", "--socket=fallback-x11", diff --git a/flatpak/perl-libs.json b/flatpak/perl-libs.json index 8e03b4f2..889dad4d 100644 --- a/flatpak/perl-libs.json +++ b/flatpak/perl-libs.json @@ -216,6 +216,23 @@ "sha256": "d331332491c51cccfb4cb94ffc44f9cd73378e618498d4a37df9e043661c515d" }] }, + { + "name": "libintl-perl", + "buildsystem": "simple", + "build-commands": [ + "perl Makefile.PL PREFIX=/app LIB=/app/lib", + "make", + "make install" + ], + "post-install": [ + "find ${FLATPAK_DEST}/lib/ -name \\*.so -exec chmod u+w {} \\;" + ], + "sources": [{ + "type": "archive", + "url": "https://cpan.metacpan.org/authors/id/G/GU/GUIDO/libintl-perl-1.31.tar.gz", + "sha256": "cad0b1fd0abfa1340dea089ec45ee3dacd9710c9fd942c064bb8124273b3caa9" + }] + }, { "name": "markdown", "buildsystem": "simple",