[gnome-sound-recorder/wip/exalm/fix-installation] meson: Fix bindir symlink path



commit 85f5aebf8ec45817493de79231a4fa339c43f15e
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Jun 8 18:02:21 2019 +0500

    meson: Fix bindir symlink path

 build-aux/meson_post_install.py | 3 ++-
 meson.build                     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/build-aux/meson_post_install.py b/build-aux/meson_post_install.py
index 897a1db..bb87a4d 100755
--- a/build-aux/meson_post_install.py
+++ b/build-aux/meson_post_install.py
@@ -7,11 +7,12 @@ import sys
 destdir = os.environ.get('DESTDIR', '')
 datadir = sys.argv[1]
 bindir = os.path.normpath(destdir + os.sep + sys.argv[2])
+appid = sys.argv[3]
 
 if not os.path.exists(bindir):
   os.makedirs(bindir)
 
-src = os.path.join(datadir, 'gnome-sound-recorder', 'org.gnome.SoundRecorder')
+src = os.path.join(datadir, appid, appid)
 dest = os.path.join(bindir, 'gnome-sound-recorder')
 subprocess.call(['ln', '-s', '-f', src, dest])
 
diff --git a/meson.build b/meson.build
index dc79943..dcde916 100644
--- a/meson.build
+++ b/meson.build
@@ -36,5 +36,6 @@ subdir('po')
 meson.add_install_script(
   join_paths('build-aux', 'meson_post_install.py'),
   sound_recorder_datadir,
-  sound_recorder_bindir
+  sound_recorder_bindir,
+  application_id
 )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]