Changeset 123


Ignore:
Timestamp:
Jan 14, 2022, 10:56:48 AM (2 years ago)
Author:
chronos
Message:
  • Modified: Updated snap definition file to support standard gtk2 themes and locales.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/1.1.0/Install/snap/snapcraft.yaml

    r121 r123  
    2121    source: .
    2222    source-type: local
    23     build-packages: 
     23    build-packages:
    2424    - fpc
    2525    - lazarus
     
    4343      install -m 644 Install/snap/local/LazFuck.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    4444      cp -r Examples $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck
     45    after:
     46    - desktop-gtk2
    4547    stage:
    46       - etc
    47       - usr
    48       - usr/bin
    49       - usr/share/LazFuck
    50       - usr/share/applications/LazFuck.desktop
    51       - usr/share/pixmaps
    52       - usr/share/mime
     48    - etc
     49    - usr
     50    - usr/bin
     51    - usr/share/LazFuck
     52    - usr/share/applications/LazFuck.desktop
     53    - usr/share/pixmaps
     54    - usr/share/mime
    5355    stage-packages:
    54       - libatk1.0-0
    55       - libcairo2
    56       - libdatrie1
    57       - libfontconfig1
    58       - libfreetype6
    59       - libfribidi0
    60       - libgdk-pixbuf2.0-0
    61       - libgraphite2-3
    62       - libgtk2.0-0
    63       - libharfbuzz0b
    64       - libpango-1.0-0
    65       - libpangocairo-1.0-0
    66       - libpangoft2-1.0-0
    67       - libpixman-1-0
    68       - libpng16-16
    69       - libthai0
    70       - libx11-6
    71       - libxau6
    72       - libxcb-render0
    73       - libxcb-shm0
    74       - libxcb1
    75       - libxcomposite1
    76       - libxcursor1
    77       - libxdamage1
    78       - libxdmcp6
    79       - libxext6
    80       - libxfixes3
    81       - libxi6
    82       - libxinerama1
    83       - libxrandr2
    84       - libxrender1
     56    - libatk1.0-0
     57    - libcairo2
     58    - libdatrie1
     59    - libfontconfig1
     60    - libfreetype6
     61    - libfribidi0
     62    - libgdk-pixbuf2.0-0
     63    - libgraphite2-3
     64    - libgtk2.0-0
     65    - libharfbuzz0b
     66    - libpango-1.0-0
     67    - libpangocairo-1.0-0
     68    - libpangoft2-1.0-0
     69    - libpixman-1-0
     70    - libpng16-16
     71    - libthai0
     72    - libx11-6
     73    - libxau6
     74    - libxcb-render0
     75    - libxcb-shm0
     76    - libxcb1
     77    - libxcomposite1
     78    - libxcursor1
     79    - libxdamage1
     80    - libxdmcp6
     81    - libxext6
     82    - libxfixes3
     83    - libxi6
     84    - libxinerama1
     85    - libxrandr2
     86    - libxrender1
     87
     88  desktop-gtk2:
     89    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
     90    source-subdir: gtk
     91    plugin: make
     92    make-parameters: ["FLAVOR=gtk2"]
     93    build-packages:
     94    - build-essential
     95    - libgtk2.0-dev
     96    stage-packages:
     97    - libxkbcommon0  # XKB_CONFIG_ROOT
     98    - ttf-ubuntu-font-family
     99    - dmz-cursor-theme
     100    - light-themes
     101    - adwaita-icon-theme
     102    - gnome-themes-standard
     103    - shared-mime-info
     104    - libgtk2.0-0
     105    - libgdk-pixbuf2.0-0
     106    - libglib2.0-bin
     107    - libgtk2.0-bin
     108    - unity-gtk2-module
     109    - locales-all
     110    - libappindicator1
     111    - xdg-user-dirs
     112    - ibus-gtk
     113    - libibus-1.0-5
     114
     115# Additional plugs to pick up the GTK theme and icons from the system
     116plugs:
     117  icon-themes:
     118    interface: content
     119    target: $SNAP/data-dir/icons
     120    default-provider: gtk-common-themes
     121  sound-themes:
     122    interface: content
     123    target: $SNAP/data-dir/sounds
     124    default-provider: gtk-common-themes
     125  gtk-2-engines:
     126    interface: content
     127    target: $SNAP/lib/gtk-2.0
     128    default-provider: gtk2-common-themes:gtk-2-engines
     129  gtk-2-themes:
     130    interface: content
     131    target: $SNAP/usr/share/themes
     132    default-provider: gtk2-common-themes:gtk-2-themes
     133
     134environment:
     135  XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
     136  GTK_PATH: $SNAP/lib/gtk-2.0
    85137
    86138apps:
    87139  lazfuck:
    88140    command: usr/bin/LazFuck
     141    command-chain:
     142    - bin/desktop-launch
    89143    desktop: usr/share/applications/LazFuck.desktop   
    90144    plugs:
    91       - desktop
    92       - x11
    93       - home
     145    - desktop
     146    - x11
     147    - home
    94148
    95149layout:
  • trunk/Install/snap/snapcraft.yaml

    r121 r123  
    2121    source: .
    2222    source-type: local
    23     build-packages: 
     23    build-packages:
    2424    - fpc
    2525    - lazarus
     
    4343      install -m 644 Install/snap/local/LazFuck.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    4444      cp -r Examples $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck
     45    after:
     46    - desktop-gtk2
    4547    stage:
    46       - etc
    47       - usr
    48       - usr/bin
    49       - usr/share/LazFuck
    50       - usr/share/applications/LazFuck.desktop
    51       - usr/share/pixmaps
    52       - usr/share/mime
     48    - etc
     49    - usr
     50    - usr/bin
     51    - usr/share/LazFuck
     52    - usr/share/applications/LazFuck.desktop
     53    - usr/share/pixmaps
     54    - usr/share/mime
    5355    stage-packages:
    54       - libatk1.0-0
    55       - libcairo2
    56       - libdatrie1
    57       - libfontconfig1
    58       - libfreetype6
    59       - libfribidi0
    60       - libgdk-pixbuf2.0-0
    61       - libgraphite2-3
    62       - libgtk2.0-0
    63       - libharfbuzz0b
    64       - libpango-1.0-0
    65       - libpangocairo-1.0-0
    66       - libpangoft2-1.0-0
    67       - libpixman-1-0
    68       - libpng16-16
    69       - libthai0
    70       - libx11-6
    71       - libxau6
    72       - libxcb-render0
    73       - libxcb-shm0
    74       - libxcb1
    75       - libxcomposite1
    76       - libxcursor1
    77       - libxdamage1
    78       - libxdmcp6
    79       - libxext6
    80       - libxfixes3
    81       - libxi6
    82       - libxinerama1
    83       - libxrandr2
    84       - libxrender1
     56    - libatk1.0-0
     57    - libcairo2
     58    - libdatrie1
     59    - libfontconfig1
     60    - libfreetype6
     61    - libfribidi0
     62    - libgdk-pixbuf2.0-0
     63    - libgraphite2-3
     64    - libgtk2.0-0
     65    - libharfbuzz0b
     66    - libpango-1.0-0
     67    - libpangocairo-1.0-0
     68    - libpangoft2-1.0-0
     69    - libpixman-1-0
     70    - libpng16-16
     71    - libthai0
     72    - libx11-6
     73    - libxau6
     74    - libxcb-render0
     75    - libxcb-shm0
     76    - libxcb1
     77    - libxcomposite1
     78    - libxcursor1
     79    - libxdamage1
     80    - libxdmcp6
     81    - libxext6
     82    - libxfixes3
     83    - libxi6
     84    - libxinerama1
     85    - libxrandr2
     86    - libxrender1
     87
     88  desktop-gtk2:
     89    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
     90    source-subdir: gtk
     91    plugin: make
     92    make-parameters: ["FLAVOR=gtk2"]
     93    build-packages:
     94    - build-essential
     95    - libgtk2.0-dev
     96    stage-packages:
     97    - libxkbcommon0  # XKB_CONFIG_ROOT
     98    - ttf-ubuntu-font-family
     99    - dmz-cursor-theme
     100    - light-themes
     101    - adwaita-icon-theme
     102    - gnome-themes-standard
     103    - shared-mime-info
     104    - libgtk2.0-0
     105    - libgdk-pixbuf2.0-0
     106    - libglib2.0-bin
     107    - libgtk2.0-bin
     108    - unity-gtk2-module
     109    - locales-all
     110    - libappindicator1
     111    - xdg-user-dirs
     112    - ibus-gtk
     113    - libibus-1.0-5
     114
     115# Additional plugs to pick up the GTK theme and icons from the system
     116plugs:
     117  icon-themes:
     118    interface: content
     119    target: $SNAP/data-dir/icons
     120    default-provider: gtk-common-themes
     121  sound-themes:
     122    interface: content
     123    target: $SNAP/data-dir/sounds
     124    default-provider: gtk-common-themes
     125  gtk-2-engines:
     126    interface: content
     127    target: $SNAP/lib/gtk-2.0
     128    default-provider: gtk2-common-themes:gtk-2-engines
     129  gtk-2-themes:
     130    interface: content
     131    target: $SNAP/usr/share/themes
     132    default-provider: gtk2-common-themes:gtk-2-themes
     133
     134environment:
     135  XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
     136  GTK_PATH: $SNAP/lib/gtk-2.0
    85137
    86138apps:
    87139  lazfuck:
    88140    command: usr/bin/LazFuck
     141    command-chain:
     142    - bin/desktop-launch
    89143    desktop: usr/share/applications/LazFuck.desktop   
    90144    plugs:
    91       - desktop
    92       - x11
    93       - home
     145    - desktop
     146    - x11
     147    - home
    94148
    95149layout:
Note: See TracChangeset for help on using the changeset viewer.