@ -1,4 +1,4 @@ | |||
### CMakeLists automatically created with AutoVala | |||
### Do not edit | |||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/package-generic.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pamac/ ) | |||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/package-generic.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pamac-classic/ ) |
@ -1,6 +1,6 @@ | |||
#!/bin/sh | |||
mkdir -p $DESTDIR/$1 | |||
if [[ -d $2 ]]; then | |||
if [ -d "$2" ]; then | |||
cp -a $2/* $DESTDIR/$1 | |||
else | |||
cp -a $2 $DESTDIR/$1 | |||
@ -1,2 +1,2 @@ | |||
i18n = import('i18n') | |||
i18n.gettext('pamac', languages: ['af', 'ar', 'es_ES', 'nn', 'sl_SI', 'cs_CZ', 'is', 'gl', 'be', 'sr_RS', 'zh_TW', 'pl_PL', 'uz', 'fi', 'is_IS', 'sr_RS@latin', 'sl', 'es', 'sr@latin', 'fr', 'ro', 'sr', 'el', 'eu', 'ml', 'ur_PK', 'ko', 'el_GR', 'de_DE', 'cs', 'bs', 'si', 'zh', 'da', 'ca_ES', 'sv', 'it_IT', 'vi', 'eo', 'es_AR', 'zh_CN', 'pl', 'hi', 'pt', 'en_GB', 'es_419', 'es_MX', 'fa', 'nl', 'hu', 'bn', 'hr_HR', 'nb', 'ja', 'pt_BR', 'pt_PT', 'nl_BE', 'ca', 'tr', 'he', 'hi_IN', 'et', 'lt', 'fo', 'it', 'fa_IR', 'de_CH', 'de', 'ka', 'bs_BA', 'ru', 'ms', 'sk', 'bg', 'ast', 'uk', 'hr', 'es_SV', 'nl_NL', 'cy', 'id', 'az_AZ']) | |||
i18n.gettext('pamac-classic', languages: ['af', 'ar', 'es_ES', 'nn', 'sl_SI', 'cs_CZ', 'is', 'gl', 'be', 'sr_RS', 'zh_TW', 'pl_PL', 'uz', 'fi', 'is_IS', 'sr_RS@latin', 'sl', 'es', 'sr@latin', 'fr', 'ro', 'sr', 'el', 'eu', 'ml', 'ur_PK', 'ko', 'el_GR', 'de_DE', 'cs', 'bs', 'si', 'zh', 'da', 'ca_ES', 'sv', 'it_IT', 'vi', 'eo', 'es_AR', 'zh_CN', 'pl', 'hi', 'pt', 'en_GB', 'es_419', 'es_MX', 'fa', 'nl', 'hu', 'bn', 'hr_HR', 'nb', 'ja', 'pt_BR', 'pt_PT', 'nl_BE', 'ca', 'tr', 'he', 'hi_IN', 'et', 'lt', 'fo', 'it', 'fa_IR', 'de_CH', 'de', 'ka', 'bs_BA', 'ru', 'ms', 'sk', 'bg', 'ast', 'uk', 'hr', 'es_SV', 'nl_NL', 'cy', 'id', 'az_AZ']) |
@ -1,12 +0,0 @@ | |||
prefix=@CMAKE_INSTALL_PREFIX@ | |||
real_prefix=@CMAKE_INSTALL_PREFIX@ | |||
exec_prefix=@DOLLAR@{prefix} | |||
libdir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_LIBDIR} | |||
includedir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_INCLUDEDIR} | |||
Name: Pamac | |||
Description: Pamac | |||
Version: 6.3.5 | |||
Libs: -L@DOLLAR@{libdir} -lPamac | |||
Cflags: -I@DOLLAR@{includedir} | |||
Requires: gdk-3.0 gtk+-3.0 libalpm libnotify vte-2.91 gio-2.0 glib-2.0 gobject-2.0 |
@ -1,9 +0,0 @@ | |||
posix | |||
gdk-3.0 | |||
gtk+-3.0 | |||
libalpm | |||
libnotify | |||
vte-2.91 | |||
gio-2.0 | |||
glib-2.0 | |||
gobject-2.0 |
@ -1,12 +0,0 @@ | |||
prefix=@CMAKE_INSTALL_PREFIX@ | |||
real_prefix=@CMAKE_INSTALL_PREFIX@ | |||
exec_prefix=@DOLLAR@{prefix} | |||
libdir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_LIBDIR} | |||
includedir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_INCLUDEDIR} | |||
Name: PamacUserDaemon | |||
Description: PamacUserDaemon | |||
Version: 5.2.1 | |||
Libs: -L@DOLLAR@{libdir} -lPamacUserDaemon | |||
Cflags: -I@DOLLAR@{includedir} | |||
Requires: gdk-3.0 gtk+-3.0 libalpm libnotify vte-2.91 gio-2.0 glib-2.0 gobject-2.0 |
@ -1,3 +0,0 @@ | |||
json-glib-1.0 | |||
libsoup-2.4 | |||
glib-2.0 |
@ -1,122 +0,0 @@ | |||
### CMakeLists automatically created with AutoVala | |||
### Do not edit | |||
set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}") | |||
set (PKGDATADIR "${DATADIR}/pamac") | |||
set (GETTEXT_PACKAGE "pamac") | |||
set (RELEASE_NAME "pamac") | |||
set (CMAKE_C_FLAGS "") | |||
set (PREFIX ${CMAKE_INSTALL_PREFIX}) | |||
set (VERSION "6.3.5") | |||
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}") | |||
set (DOLLAR "$") | |||
configure_file (${CMAKE_SOURCE_DIR}/src/aur/Config.vala.base ${CMAKE_BINARY_DIR}/src/aur/Config.vala) | |||
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\") | |||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/AUR.pc ${CMAKE_CURRENT_BINARY_DIR}/AUR.pc) | |||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/AUR.deps ${CMAKE_CURRENT_BINARY_DIR}/AUR.deps) | |||
set (VERSION "6.3.5") | |||
add_definitions (${DEPS_CFLAGS}) | |||
link_libraries ( ${DEPS_LIBRARIES} ) | |||
link_directories ( ${DEPS_LIBRARY_DIRS} ) | |||
find_package (Vala REQUIRED) | |||
include (ValaVersion) | |||
ensure_vala_version ("0.38" MINIMUM) | |||
include (ValaPrecompile) | |||
set (VALA_PACKAGES ${VALA_PACKAGES} json-glib-1.0) | |||
set (VALA_PACKAGES ${VALA_PACKAGES} libsoup-2.4) | |||
set (VALA_PACKAGES ${VALA_PACKAGES} glib-2.0) | |||
set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala) | |||
set (APP_SOURCES ${APP_SOURCES} aur.vala) | |||
if (DISABLE_AUR) | |||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR) | |||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) | |||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) | |||
endif () | |||
if (ENABLE_UPDATE_ICON) | |||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON) | |||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " ) | |||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " ) | |||
endif () | |||
if (KDE_TRAY) | |||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) | |||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) | |||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " ) | |||
endif () | |||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis ) | |||
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")) | |||
set(COMPILE_OPTIONS ${COMPILE_OPTIONS} "-g") | |||
endif() | |||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --library=AUR --gir AUR-6.0.gir ) | |||
vala_precompile(VALA_C AUR | |||
${APP_SOURCES} | |||
PACKAGES | |||
${VALA_PACKAGES} | |||
OPTIONS | |||
${COMPILE_OPTIONS} | |||
GENERATE_VAPI | |||
AUR | |||
GENERATE_HEADER | |||
AUR | |||
) | |||
add_library(AUR SHARED ${VALA_C}) | |||
set_target_properties( AUR PROPERTIES | |||
VERSION | |||
6.3.5 | |||
SOVERSION | |||
6 ) | |||
install(TARGETS | |||
AUR | |||
LIBRARY DESTINATION | |||
${CMAKE_INSTALL_LIBDIR}/ | |||
) | |||
install(FILES | |||
${CMAKE_CURRENT_BINARY_DIR}/AUR.h | |||
DESTINATION | |||
${CMAKE_INSTALL_INCLUDEDIR}/ | |||
) | |||
install(FILES | |||
${CMAKE_CURRENT_BINARY_DIR}/AUR.vapi | |||
DESTINATION | |||
${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi/ | |||
) | |||
install(FILES | |||
${CMAKE_CURRENT_BINARY_DIR}/AUR.deps | |||
DESTINATION | |||
${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi/ | |||
) | |||
install(FILES | |||
${CMAKE_CURRENT_BINARY_DIR}/AUR-6.0.gir | |||
DESTINATION | |||
${CMAKE_INSTALL_DATAROOTDIR}/gir-1.0/ | |||
) | |||
install(FILES | |||
${CMAKE_CURRENT_BINARY_DIR}/AUR.pc | |||
DESTINATION | |||
${CMAKE_INSTALL_LIBDIR}/pkgconfig/ | |||
) | |||
if(HAVE_VALADOC) | |||
valadoc(AUR | |||
${CMAKE_BINARY_DIR}/valadoc/AUR | |||
${APP_SOURCES} | |||
PACKAGES | |||
${VALA_PACKAGES} | |||
CUSTOM_VAPIS | |||
${CUSTOM_VAPIS_LIST} | |||
) | |||
install(DIRECTORY | |||
${CMAKE_BINARY_DIR}/valadoc | |||
DESTINATION | |||
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac | |||
) | |||
endif() |
@ -1,10 +0,0 @@ | |||
namespace AURConstants { | |||
public const string DATADIR = "@DATADIR@"; | |||
public const string PKGDATADIR = "@PKGDATADIR@"; | |||
public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@"; | |||
public const string RELEASE_NAME = "@RELEASE_NAME@"; | |||
public const string VERSION = "@VERSION@"; | |||
#if UNITEST | |||
public const string TESTSRCDIR = "@TESTSRCDIR@"; | |||
#endif | |||
} |
@ -1,50 +0,0 @@ | |||
cfg_aur = configuration_data() | |||
cfg_aur.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir'))) | |||
cfg_aur.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac')) | |||
cfg_aur.set('GETTEXT_PACKAGE', 'pamac') | |||
cfg_aur.set('RELEASE_NAME', 'pamac') | |||
cfg_aur.set('PREFIX', get_option('prefix')) | |||
cfg_aur.set('VERSION', '6.3.5') | |||
cfg_aur.set('TESTSRCDIR', meson.source_root()) | |||
cfgfile_2 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_aur) | |||
aur_deps = [json_glib_1_0_dep] | |||
aur_deps += [libsoup_2_4_dep] | |||
aur_deps += [glib_2_0_dep] | |||
aur_sources = [cfgfile_2] | |||
aur_sources += ['aur.vala'] | |||
aur_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')] | |||
aur_c_args = [] | |||
if DISABLE_AUR | |||
aur_vala_args += ['-D', 'DISABLE_AUR'] | |||
aur_c_args += ['-DDISABLE_AUR'] | |||
endif | |||
if ENABLE_UPDATE_ICON | |||
aur_vala_args += ['-D', 'ENABLE_UPDATE_ICON'] | |||
aur_c_args += ['-DENABLE_UPDATE_ICON'] | |||
endif | |||
if KDE_TRAY | |||
aur_vala_args += ['-D', 'KDE_TRAY'] | |||
aur_c_args += ['-DKDE_TRAY'] | |||
endif | |||
aur_vala_args += ['--gir=AUR-6.0.gir'] | |||
AUR_library = shared_library('AUR',aur_sources,dependencies: aur_deps,vala_args: aur_vala_args,c_args: aur_c_args,version: '6.3.5',soversion: '6',install: true) | |||
aur_requires = [] | |||
aur_requires += ['json-glib-1.0'] | |||
aur_requires += ['libsoup-2.4'] | |||
aur_requires += ['glib-2.0'] | |||
pkg_mod = import('pkgconfig') | |||
pkg_mod.generate(libraries : AUR_library, | |||
version : '6.3.5', | |||
name : 'AUR', | |||
filebase : 'AUR', | |||
description : 'AUR', | |||
requires : aur_requires) | |||
install_data(join_paths(meson.current_source_dir(),'AUR.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi')) | |||
meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src/aur','AUR','AUR-6.0.gir') | |||
@ -1,74 +1,81 @@ | |||
cfg_pamac = configuration_data() | |||
cfg_pamac.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir'))) | |||
cfg_pamac.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac')) | |||
cfg_pamac.set('GETTEXT_PACKAGE', 'pamac') | |||
cfg_pamac.set('RELEASE_NAME', 'pamac') | |||
cfg_pamac.set('PREFIX', get_option('prefix')) | |||
cfg_pamac.set('VERSION', '6.3.5') | |||
cfg_pamac.set('TESTSRCDIR', meson.source_root()) | |||
cfg_pamac_classic = configuration_data() | |||
cfg_pamac_classic.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir'))) | |||
cfg_pamac_classic.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac-classic')) | |||
cfg_pamac_classic.set('GETTEXT_PACKAGE', 'pamac-classic') | |||
cfg_pamac_classic.set('RELEASE_NAME', 'pamac-classic') | |||
cfg_pamac_classic.set('PREFIX', get_option('prefix')) | |||
cfg_pamac_classic.set('VERSION', '6.3.5') | |||
cfg_pamac_classic.set('TESTSRCDIR', meson.source_root()) | |||
cfgfile_1 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac) | |||
cfgfile_1 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_classic) | |||
pamac_deps = [gdk_3_0_dep] | |||
pamac_deps += [gtk_3_0_dep] | |||
pamac_deps += [libalpm_dep] | |||
pamac_deps += [libnotify_dep] | |||
pamac_deps += [vte_2_91_dep] | |||
pamac_deps += [gio_2_0_dep] | |||
pamac_deps += [glib_2_0_dep] | |||
pamac_deps += [gobject_2_0_dep] | |||
pamac_sources = [cfgfile_1] | |||
pamac_sources += ['alpm_config.vala'] | |||
pamac_sources += ['choose_ignorepkgs_dialog.vala'] | |||
pamac_sources += ['choose_provider_dialog.vala'] | |||
pamac_sources += ['common.vala'] | |||
pamac_sources += ['mirrors_config.vala'] | |||
pamac_sources += ['package.vala'] | |||
pamac_sources += ['pamac_config.vala'] | |||
pamac_sources += ['preferences_dialog.vala'] | |||
pamac_sources += ['progress_box.vala'] | |||
pamac_sources += ['transaction.vala'] | |||
pamac_sources += ['transaction_sum_dialog.vala'] | |||
pamac_sources += [pamac_transaction_gresource_xml_file_c] | |||
pamac_vala_args = ['--pkg','posix'] | |||
pamac_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')] | |||
pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')] | |||
pamac_c_args = [] | |||
pamac_classic_deps = [gdk_3_0_dep] | |||
pamac_classic_deps += [gtk_3_0_dep] | |||
pamac_classic_deps += [json_glib_1_0_dep] | |||
pamac_classic_deps += [libalpm_dep] | |||
pamac_classic_deps += [libnotify_dep] | |||
pamac_classic_deps += [libsoup_2_4_dep] | |||
pamac_classic_deps += [vte_2_91_dep] | |||
pamac_classic_deps += [gio_2_0_dep] | |||
pamac_classic_deps += [glib_2_0_dep] | |||
pamac_classic_deps += [gobject_2_0_dep] | |||
pamac_classic_sources = [cfgfile_1] | |||
if not DISABLE_AUR | |||
pamac_classic_sources += ['aur.vala'] | |||
endif | |||
pamac_classic_sources += ['alpm_config.vala'] | |||
pamac_classic_sources += ['choose_ignorepkgs_dialog.vala'] | |||
pamac_classic_sources += ['choose_provider_dialog.vala'] | |||
pamac_classic_sources += ['common.vala'] | |||
pamac_classic_sources += ['mirrors_config.vala'] | |||
pamac_classic_sources += ['package.vala'] | |||
pamac_classic_sources += ['pamac_config.vala'] | |||
pamac_classic_sources += ['preferences_dialog.vala'] | |||
pamac_classic_sources += ['progress_box.vala'] | |||
pamac_classic_sources += ['transaction.vala'] | |||
pamac_classic_sources += ['transaction_sum_dialog.vala'] | |||
pamac_classic_sources += [pamac_transaction_gresource_xml_file_c] | |||
pamac_classic_vala_args = ['--pkg','posix'] | |||
pamac_classic_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')] | |||
pamac_classic_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')] | |||
pamac_classic_c_args = [] | |||
if DISABLE_AUR | |||
pamac_vala_args += ['-D', 'DISABLE_AUR'] | |||
pamac_c_args += ['-DDISABLE_AUR'] | |||
pamac_classic_vala_args += ['-D', 'DISABLE_AUR'] | |||
pamac_classic_c_args += ['-DDISABLE_AUR'] | |||
endif | |||
if ENABLE_UPDATE_ICON | |||
pamac_vala_args += ['-D', 'ENABLE_UPDATE_ICON'] | |||
pamac_c_args += ['-DENABLE_UPDATE_ICON'] | |||
pamac_classic_vala_args += ['-D', 'ENABLE_UPDATE_ICON'] | |||
pamac_classic_c_args += ['-DENABLE_UPDATE_ICON'] | |||
endif | |||
if KDE_TRAY | |||
pamac_vala_args += ['-D', 'KDE_TRAY'] | |||
pamac_c_args += ['-DKDE_TRAY'] | |||
pamac_classic_vala_args += ['-D', 'KDE_TRAY'] | |||
pamac_classic_c_args += ['-DKDE_TRAY'] | |||
endif | |||
pamac_deps += [meson.get_compiler('c').find_library('m', required : false)] | |||
pamac_vala_args += ['--gir=Pamac-6.0.gir'] | |||
pamac_classic_deps += [meson.get_compiler('c').find_library('m', required : false)] | |||
pamac_classic_vala_args += ['--gir=pamacclassic-6.0.gir'] | |||
Pamac_library = shared_library('Pamac',pamac_sources,dependencies: pamac_deps,vala_args: pamac_vala_args,c_args: pamac_c_args,version: '6.3.5',soversion: '6',install: true) | |||
pamacclassic_library = shared_library('pamacclassic',pamac_classic_sources,dependencies: pamac_classic_deps,vala_args: pamac_classic_vala_args,c_args: pamac_classic_c_args,version: '6.3.5',soversion: '6',install: true) | |||
pamac_requires = [] | |||
pamac_requires += ['gdk-3.0'] | |||
pamac_requires += ['gtk+-3.0'] | |||
pamac_requires += ['libalpm'] | |||
pamac_requires += ['libnotify'] | |||
pamac_requires += ['vte-2.91'] | |||
pamac_requires += ['gio-2.0'] | |||
pamac_requires += ['glib-2.0'] | |||
pamac_requires += ['gobject-2.0'] | |||
pamac_classic_requires = [] | |||
pamac_classic_requires += ['gdk-3.0'] | |||
pamac_classic_requires += ['gtk+-3.0'] | |||
pamac_classic_requires += ['json-glib-1.0'] | |||
pamac_classic_requires += ['libalpm'] | |||
pamac_classic_requires += ['libnotify'] | |||
pamac_classic_requires += ['libsoup-2.4'] | |||
pamac_classic_requires += ['vte-2.91'] | |||
pamac_classic_requires += ['gio-2.0'] | |||
pamac_classic_requires += ['glib-2.0'] | |||
pamac_classic_requires += ['gobject-2.0'] | |||
pkg_mod = import('pkgconfig') | |||
pkg_mod.generate(libraries : Pamac_library, | |||
pkg_mod.generate(libraries : pamacclassic_library, | |||
version : '6.3.5', | |||
name : 'Pamac', | |||
filebase : 'Pamac', | |||
description : 'Pamac', | |||
requires : pamac_requires) | |||
name : 'pamacclassic', | |||
filebase : 'pamacclassic', | |||
description : 'pamacclassic', | |||
requires : pamac_classic_requires) | |||
install_data(join_paths(meson.current_source_dir(),'Pamac.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi')) | |||
meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src','Pamac','Pamac-6.0.gir') | |||
install_data(join_paths(meson.current_source_dir(),'pamacclassic.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi')) | |||
meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src','pamacclassic','pamacclassic-6.0.gir') | |||