Compare commits

..

No commits in common. "main" and "v0.1.1" have entirely different histories.
main ... v0.1.1

2 changed files with 7 additions and 30 deletions

View File

@ -14,22 +14,17 @@ i18n = import('i18n')
# Dependencies
gobject_dep = dependency('gobject-2.0', version: glib_ver_cmp)
gtk_dep = dependency('gtk+-3.0', version: '>=3.22')
# Detect libphosh API version
# Due to the unstable API, the version changes frequently,
# which makes it difficult to maintain in the package repository.
result = run_command('bash', 'scripts/detect-libphosh-api-version.sh', check: true)
if result.returncode() != 0
error(result.stderr())
endif
libphosh_version = result.stdout().strip()
libphosh_dep = dependency('libphosh-' + libphosh_version)
libhandy_dep = dependency('libhandy-1', version: '>=1.1.90', fallback: ['libhandy', 'libhandy_dep'], default_options: ['introspection=disabled'])
libnm_dep = dependency('libnm', version: '>=1.14')
phosh_plugins_dep = dependency('phosh-plugins', required: true, method: 'pkg-config')
libphosh_dep = dependency('libphosh-0.43', required: true, method: 'pkg-config')
plugin_deps = [
gobject_dep,
gtk_dep,
libhandy_dep,
libnm_dep,
phosh_plugins_dep,
libphosh_dep
]

View File

@ -1,18 +0,0 @@
#!/bin/bash
pc_file=$(find "/usr/lib64/pkgconfig" -maxdepth 1 -type f -name "libphosh-*.pc" -print -quit)
if [ -z "$pc_file" ]; then
echo "File libphosh-*.pc not found."
exit 1
fi
version=$(basename "$pc_file" | sed -E 's/^libphosh-([0-9.]+)\.pc$/\1/')
if [ -z "$version" ]; then
echo "Can't detect version of $pc_file."
exit 1
fi
echo $version
exit 0