Skip to content

Instantly share code, notes, and snippets.

@farribeiro
Last active November 30, 2021 02:08
Show Gist options
  • Save farribeiro/b9ac2a0a6e4a4fc02b225d5c709d26cc to your computer and use it in GitHub Desktop.
Save farribeiro/b9ac2a0a6e4a4fc02b225d5c709d26cc to your computer and use it in GitHub Desktop.
#!/bin/sh
# Program to use the command install recursivly in a folder
magic_func() {
echo "entering ${1}"
echo "target $2"
for file in $1; do
if [ -f "$file" ]; then
echo "file : $file"
echo "installing into $2/$file"
install -D $file $2/$file
elif [ -d "$file" ]; then
echo "directory : $file"
magic_func "$file/*" "$2"
else
echo "not recognized : $file"
fi
done
}
magic_func "." "/app"
app-id: org.hbarsaiyan.cinny-tauri
runtime: org.gnome.Platform
runtime-version: '41'
sdk: org.gnome.Sdk
# sdk-extensions:
# - org.freedesktop.Sdk.Extension.node16
# - org.freedesktop.Sdk.Extension.rust-stable
command: run.sh
build-options:
append-path: /usr/lib/sdk/node16/bin:/usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
modules:
- name: shared-modules/intltool/intltool-0.51.json
- name: libdbusmenu
config-opts:
- --disable-dumper
- --disable-introspection
- --disable-static
- --disable-vala
- --with-gtk=3
build-options:
cflags: -Wno-error
sources:
- type: archive
url: https://launchpad.net/libdbusmenu/16.04/16.04.0/+download/libdbusmenu-16.04.0.tar.gz
sha256: b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a
cleanup:
- /libexec
- /share/libdbusmenu
# - name: dbus-c++
# build-options:
# ldflags: -lpthread
# config-opts:
# - --prefix=/app
# - --disable-static
# - --disable-ecore
# - --disable-glib
# - --disable-examples
# sources:
# - type: archive
# url: https://sourceforge.net/projects/dbus-cplusplus/files/dbus-c%2B%2B/0.9.0/libdbus-c%2B%2B-0.9.0.tar.gz
# sha256: bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61
# - type: shell
# commands:
# - autoreconf -vfi
# - type: patch
# path: ../patches/dbus-c++_fix-writechar.patch
# - type: patch
# path: ../patches/dbus-c++_gcc47.patch
# - type: patch
# path: ../patches/dbus-c++_disable-threading.patch
# cleanup:
# - /bin
- name: mate-common
sources:
- type: archive
url: https://git.mate-desktop.org/mate-common/snapshot/mate-common-1.26.0.tar.xz
sha256: 717d0f25bc15cfddfd86c3da59d5200083206a2a7ec2cb84f363f14f9734649d
cleanup:
- "*"
- name: ayatana-ido
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/AyatanaIndicators/ayatana-ido/archive/0.9.0.tar.gz
sha256: e09b182a67ea65e188a689a2ff792c9a3830740f1aec6679bbd6021235402b4b
cleanup:
- /share/vala
- name: libayatana-indicator
config-opts:
- --disable-static
- --disable-tests
- --with-gtk=3
sources:
- type: archive
url: https://github.com/AyatanaIndicators/libayatana-indicator/archive/0.8.4.tar.gz
sha256: 9cc29454932c2d35f0a08f7c97f04eccc43ef363825369b84b8e31f4168e8ce6
cleanup:
- /share/libayatana-indicator
- /libexec
- name: libayatana-appindicator3
config-opts:
- --disable-introspection
- --disable-static
- --disable-tests
- --with-gtk=3
sources:
- type: archive
url: https://github.com/AyatanaIndicators/libayatana-appindicator/archive/0.5.5.tar.gz
sha256: 55e47e94f54e6f2f13bcc06ab20530ad0a1412282a8775331af41788b59ee331
- name: cinny-tauri
no-autogen: true
buildsystem: simple
build-options:
env:
npm_config_nodedir: /usr/lib/sdk/node16
CARGO_HOME: /run/build/cinny-tauri/cargo
build-commands:
- npm install
- npm run tauri build
- mv install.sh src
- cd src
- install.sh
- install -D ../run.sh /app/run.sh
cleanup:
- src/install.sh
sources:
- type: archive
url: https://github.com/hbarsaiyan/cinny-tauri/archive/v1.1.2.tar.gz
sha256: ed3686b238002ae8983078ce24af11fc8f62362edb5d9fa965c6fb610c4dff92
- type: file
path: run.sh
- type: file
path: install.sh
finish-args:
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --share=network
- --filesystem=xdg-documents
- --filesystem=xdg-images
- --filesystem=xdg-musics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment