Skip to content

Instantly share code, notes, and snippets.

@jbwyatt4
Created December 20, 2019 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbwyatt4/aaafe2e2922e6c0ed14fd1d6849c7c6a to your computer and use it in GitHub Desktop.
Save jbwyatt4/aaafe2e2922e6c0ed14fd1d6849c7c6a to your computer and use it in GitHub Desktop.
name: xed-unofficial
version: 'git'
#grade: stable
#adopt-info: xed-unofficial
summary: 'xed is a small and lightweight text editor.'
description: |
xed is a small and lightweight text editor in the classic GTK style menus.
xed supports most standard editing features, plus several not found in your
average text editor (plugins being the most notable of these).
base: core18
confinement: strict
apps:
xed-unofficial:
command: xed
extensions: [gnome-3-28]
plugs:
- gsettings # For desktop theme detection under Wayland session
- home
slots:
- dbus-daemon
common-id: com.github.linuxmint.xed
desktop: usr/share/applications/com.github.linuxmint.xed.desktop
parts:
xapps:
source: https://github.com/linuxmint/xapps.git
source-type: git
source-tag: '1.6.8'
# meson-parameters: [--prefix=/snap/xed/current/usr . build] # don't use, reports glib-2.0' not found in specified Vala API directories
# ninja-parameters: [-v -C build] # doesn't exist?
plugin: meson
override-build: |
echo $PWD
cd .. # xapps/xed build guide says to be in the root of the repo
meson --prefix=/snap/xed/current/usr . build
echo $PWD
ninja -v
sudo ninja install -v
stage-packages:
- gjs
- gir1.2-webkit2-4.0
- cmake
- build-essential
- pkg-config
- libpeas-dev
- libgtksourceview-3.0-dev
- libgnomekbd-dev
- valac
- python-gi-dev
- libgtk-3-dev
- libvala-0.40-dev
- libvalapanel-dev
- libgirepository1.0-dev
- libgspell-1-dev
- intltool
- itstool
- gnome-devel # added this just to see if it would work, didn't
- gobject-introspection
- gir1.2-glib-2.0
- libglib2.0-dev
- libpoppler-glib-dev
- libgee-0.8-dev
- libxml2-dev
- ninja-build # w/o ninja will report it can't find ninja.build file # actually not true
xed-unofficial:
plugin: meson
source: https://github.com/linuxmint/xed.git
source-tag: 'master.mint19'
meson-parameters: [--prefix=/snap/xed/current/usr]
build-packages:
- libgjs-dev
- gettext
organize:
snap/xed-unofficial/current/usr: usr
parse-info: [usr/share/metainfo/com.github.linuxmint.xed.appdata.xml]
slots:
dbus-daemon:
interface: dbus
bus: session
name: com.github.linuxmint.Xed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment