Skip to content

Instantly share code, notes, and snippets.

@user5145
Last active November 20, 2024 13:59
Show Gist options
  • Select an option

  • Save user5145/9aecebaa8045174958123c9798c93009 to your computer and use it in GitHub Desktop.

Select an option

Save user5145/9aecebaa8045174958123c9798c93009 to your computer and use it in GitHub Desktop.

Revisions

  1. user5145 revised this gist Dec 31, 2022. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions flatpak install
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,5 @@ flatpak --user remote-add --no-gpg-verify my_repo "${MY_FLATPAK_REPO}"
    flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists --user kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists --user gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --if-not-exists --user org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
    flatpak remote-add --if-not-exists --user winepak https://dl.winepak.org/repo/winepak.flatpakrepo
    flatpak remote-add --if-not-exists --user flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
    flatpak remote-add --if-not-exists --user freedesktop-dev https://cache.sdk.freedesktop.org/freedesktop-sdk.flatpakrepo
  2. user5145 revised this gist Dec 31, 2022. 2 changed files with 0 additions and 21 deletions.
    21 changes: 0 additions & 21 deletions flatpak install script
    Original file line number Diff line number Diff line change
    @@ -1,21 +0,0 @@
    #/usr/bin/env bash
    set -e

    if [[ "$1" == "-h" || "$1" == "--help" || -z "$4" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git /mnt/storage/my_flatpak_repo"
    exit 0
    fi

    export FLATPAK_NAME="$1"
    export FLATPAK_GIT_NAME="$2"
    export FLATPAK_URL="$3"
    export MY_FLATPAK_REPO="$4"

    flatpak list | grep "${FLATPAK_NAME}" && echo "app already is installed" && exit 0
    mkdir -p /tmp/${FLATPAK_NAME}-gitclone
    cd /tmp/${FLATPAK_NAME}-gitclone
    rm -Rf /tmp/${FLATPAK_NAME}-gitclone/${FLATPAK_GIT_NAME}
    git clone ${FLATPAK_URL}
    cd ${FLATPAK_GIT_NAME}
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
    flatpak --user -y install my_repo ${FLATPAK_NAME}
    File renamed without changes.
  3. user5145 revised this gist Mar 13, 2020. 1 changed file with 110 additions and 0 deletions.
    110 changes: 110 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,110 @@
    - name: xml
    sources:
    - type: git
    url: https://github.com/GNOME/libxml2.git
    tag: v2.9.10

    - name: texinfo
    sources:
    - type: git
    url: https://git.savannah.gnu.org/git/texinfo.git
    tag: texinfo-6.7

    - name: libpng12
    sources:
    - type: archive
    url: https://sourceforge.net/projects/libpng/files/libpng12/1.2.59/libpng-1.2.59.tar.xz
    sha256: b4635f15b8adccc8ad0934eea485ef59cc4cae24d0f0300a9a941e51974ffcc7

    - name: krb5
    subdir: src
    config-opts:
    - --prefix=/usr
    - --enable-shared
    - --with-ldap
    - --with-lmdb
    sources:
    - type: archive
    url: https://web.mit.edu/kerberos/dist/krb5/1.17/krb5-1.17.tar.gz
    sha256: 5a6e2284a53de5702d3dc2be3b9339c963f9b5397d3fbbc53beb249380a781f5

    - name: gphoto2
    sources:
    - type: archive
    url: https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.23/libgphoto2-2.5.23.tar.bz2
    sha256: d8af23364aa40fd8607f7e073df74e7ace05582f4ba13f1724d12d3c97e8852d

    - name: opencl-headers
    buildsystem: simple
    build-commands:
    - cp -R CL /usr/include/CL
    sources:
    - type: git
    url: https://github.com/KhronosGroup/OpenCL-Headers.git
    commit: 0d5f18c6e7196863bc1557a693f1509adfcee056

    - name: FAudio
    buildsystem: cmake-ninja
    config-opts:
    - -DCMAKE_BUILD_TYPE=Release
    - -DFFMPEG=ON
    sources:
    - type: archive
    url: "https://github.com/FNA-XNA/FAudio/archive/19.09.tar.gz"
    sha256: 754b5ccc239bc1be4046d254748cface915e653aec179424fd452255a7082677

    - name: lmdb
    subdir: libraries/liblmdb
    make-install-args:
    - prefix=/usr
    sources:
    - type: archive
    url: https://github.com/LMDB/lmdb/archive/LMDB_0.9.24.tar.gz
    sha256: 44602436c52c29d4f301f55f6fd8115f945469b868348e3cddaf91ab2473ea26

    - name: pcap
    sources:
    - type: archive
    url: https://www.tcpdump.org/release/libpcap-1.9.0.tar.gz
    sha256: 2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019

    - name: v4l-utils
    config-opts:
    - --disable-static
    - --disable-doxygen-doc
    - --disable-v4l-utils
    sources:
    - type: archive
    url: https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.16.7.tar.bz2
    sha256: ee917a7e1af72c60c0532d9fdb9e48baf641d427aa7b009a9b2ca821f9e8e0d9

    - name: capi
    sources:
    - type: archive
    url: "http://deb.debian.org/debian/pool/main/libc/libcapi20-3/libcapi20-3_3.27.orig.tar.bz2"
    sha256: d8e423d5adba1750f511a2c088296db2a8a2e1e9209401871b01ce411d8ac583

    - name: sane
    config-opts:
    - --enable-libusb_1_0
    - --enable-pthread
    - --enable-avahi
    - --disable-locking
    - --disable-rpath
    sources:
    - type: archive
    url: https://gitlab.com/sane-project/backends/uploads/9e718daff347826f4cfe21126c8d5091/sane-backends-1.0.28.tar.gz
    sha256: 31260f3f72d82ac1661c62c5a4468410b89fb2b4a811dabbfcc0350c1346de03

    - name: openldap
    config-opts:
    - --disable-static
    - --disable-bdb
    - --disable-hdb
    - --enable-mdb
    sources:
    - type: archive
    url: https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.46.tgz
    sha256: 9a90dcb86b99ae790ccab93b7585a31fbcbeec8c94bf0f7ab0ca0a87ea0c4b2d


  4. user5145 revised this gist Aug 11, 2019. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions flatpak install
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,10 @@ flatpak --user remote-add --no-gpg-verify my_repo "${MY_FLATPAK_REPO}"


    8. Add common repositories
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --if-not-exists org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
    flatpak remote-add --if-not-exists winepak https://dl.winepak.org/repo/winepak.flatpakrepo
    flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists --user kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists --user gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --if-not-exists --user org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
    flatpak remote-add --if-not-exists --user winepak https://dl.winepak.org/repo/winepak.flatpakrepo
    flatpak remote-add --if-not-exists --user flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
    flatpak remote-add --if-not-exists --user freedesktop-dev https://cache.sdk.freedesktop.org/freedesktop-sdk.flatpakrepo
  5. user5145 revised this gist Aug 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ flatpak run --command=bash --devel com.ankama.Dofus
    flatpak remove your.application.Client

    7. Add your repo
    export MY_FLATPAK_REPO=/mnt/storage/storage/my_flatpak_repo
    export MY_FLATPAK_REPO=/mnt/storage/.flatpak_repo
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir your.application.Client.yml
    flatpak --user remote-add --no-gpg-verify my_repo "${MY_FLATPAK_REPO}"

  6. user5145 revised this gist Jul 7, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion flatpak install script
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,5 @@ cd /tmp/${FLATPAK_NAME}-gitclone
    rm -Rf /tmp/${FLATPAK_NAME}-gitclone/${FLATPAK_GIT_NAME}
    git clone ${FLATPAK_URL}
    cd ${FLATPAK_GIT_NAME}
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
    flatpak --user -y install my_repo ${FLATPAK_NAME}
  7. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install script
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    set -e

    if [[ "$1" == "-h" || "$1" == "--help" || -z "$4" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git local-repo-name"
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git /mnt/storage/my_flatpak_repo"
    exit 0
    fi

  8. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions flatpak install script
    Original file line number Diff line number Diff line change
    @@ -17,5 +17,4 @@ cd /tmp/${FLATPAK_NAME}-gitclone
    rm -Rf /tmp/${FLATPAK_NAME}-gitclone/${FLATPAK_GIT_NAME}
    git clone ${FLATPAK_URL}
    cd ${FLATPAK_GIT_NAME}
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
    flatpak --user -y install my_repo ${FLATPAK_NAME}
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
  9. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install script
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #/usr/bin/env bash
    set -e

    if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    if [[ "$1" == "-h" || "$1" == "--help" || -z "$4" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git local-repo-name"
    exit 0
    fi
  10. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install script
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    set -e

    if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git repo-name"
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git local-repo-name"
    exit 0
    fi

  11. user5145 revised this gist Jul 7, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion flatpak install script
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,14 @@
    set -e

    if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git"
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git repo-name"
    exit 0
    fi

    export FLATPAK_NAME="$1"
    export FLATPAK_GIT_NAME="$2"
    export FLATPAK_URL="$3"
    export MY_FLATPAK_REPO="$4"

    flatpak list | grep "${FLATPAK_NAME}" && echo "app already is installed" && exit 0
    mkdir -p /tmp/${FLATPAK_NAME}-gitclone
  12. user5145 revised this gist Jul 7, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions flatpak install script
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@ if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    exit 0
    fi

    export FLATPAK_NAME=sh.ppy.Osu-lazer
    export FLATPAK_GIT_NAME=sh.ppy.Osu-lazer-flatpak
    export FLATPAK_URL=https://github.com/user5145/sh.ppy.Osu-lazer-flatpak.git
    export FLATPAK_NAME="$1"
    export FLATPAK_GIT_NAME="$2"
    export FLATPAK_URL="$3"

    flatpak list | grep "${FLATPAK_NAME}" && echo "app already is installed" && exit 0
    mkdir -p /tmp/${FLATPAK_NAME}-gitclone
  13. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions flatpak install script
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@ set -e

    if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git"
    exit 0
    fi

    export FLATPAK_NAME=sh.ppy.Osu-lazer
  14. user5145 revised this gist Jul 7, 2019. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions flatpak install script
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #/usr/bin/env bash
    set -e

    if [[ $1 -eq "-h" || $1 -eq "--help" ]]; then
    echo "usage ./script com.comp.Name com.comp.Name-gitrepo https://github.com/user/com.comp.Name-gitrepo.git"
    fi

    export FLATPAK_NAME=sh.ppy.Osu-lazer
    export FLATPAK_GIT_NAME=sh.ppy.Osu-lazer-flatpak
    export FLATPAK_URL=https://github.com/user5145/sh.ppy.Osu-lazer-flatpak.git

    flatpak list | grep "${FLATPAK_NAME}" && echo "app already is installed" && exit 0
    mkdir -p /tmp/${FLATPAK_NAME}-gitclone
    cd /tmp/${FLATPAK_NAME}-gitclone
    rm -Rf /tmp/${FLATPAK_NAME}-gitclone/${FLATPAK_GIT_NAME}
    git clone ${FLATPAK_URL}
    cd ${FLATPAK_GIT_NAME}
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir ${FLATPAK_NAME}.yml
    flatpak --user -y install my_repo ${FLATPAK_NAME}
  15. user5145 revised this gist Jul 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ flatpak remove your.application.Client

    7. Add your repo
    export MY_FLATPAK_REPO=/mnt/storage/storage/my_flatpak_repo
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean --install ../build-dir your.application.Client.yml
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean ../build-dir your.application.Client.yml
    flatpak --user remote-add --no-gpg-verify my_repo "${MY_FLATPAK_REPO}"


  16. user5145 revised this gist Jul 7, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,13 @@ flatpak run --command=bash --devel com.ankama.Dofus
    6. Remove
    flatpak remove your.application.Client

    7. Add common repositories
    7. Add your repo
    export MY_FLATPAK_REPO=/mnt/storage/storage/my_flatpak_repo
    flatpak-builder --user --repo="${MY_FLATPAK_REPO}" --force-clean --install ../build-dir your.application.Client.yml
    flatpak --user remote-add --no-gpg-verify my_repo "${MY_FLATPAK_REPO}"


    8. Add common repositories
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
  17. user5145 revised this gist Mar 28, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ flatpak --user install localrepo your.application.Client
    flatpak --user remote-add --no-gpg-verify local-repo /path/to/repo

    4. Store in a folder
    flatpak-builder --user --force-clean --install build-dir your.application.Client.yml
    flatpak-builder --user --force-clean --install ../build-dir your.application.Client.yml

    5. Debugging
    flatpak run --command=bash --devel com.ankama.Dofus
  18. user5145 revised this gist Dec 16, 2018. 1 changed file with 16 additions and 5 deletions.
    21 changes: 16 additions & 5 deletions flatpak install
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,22 @@
    Store in a repository
    flatpak-builder --force-clean builds --repo=localrepo your.application.Client.yml
    1. Store in a repository
    flatpak-builder --force-clean build-dir --repo=/path/to/local/repo your.application.Client.yml

    2. Install from the repository
    flatpak --user install localrepo your.application.Client

    Store in a folder
    flatpak-builder --user --force-clean --install builds your.application.Client.yml
    3. Install the repository
    flatpak --user remote-add --no-gpg-verify local-repo /path/to/repo

    4. Store in a folder
    flatpak-builder --user --force-clean --install build-dir your.application.Client.yml

    5. Debugging
    flatpak run --command=bash --devel com.ankama.Dofus

    6. Remove
    flatpak remove your.application.Client

    Add common repositories
    7. Add common repositories
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
  19. user5145 revised this gist Nov 14, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Store in a repository
    flatpak-builder --force-clean builds --repo=localrepo your.application.Client.yml
    flatpak --user install your.application.Client
    flatpak --user install localrepo your.application.Client

    Store in a folder
    flatpak-builder --user --force-clean --install builds your.application.Client.yml
  20. user5145 revised this gist Oct 9, 2018. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions flatpak install
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ flatpak-builder --user --force-clean --install builds your.application.Client.ym

    Add common repositories
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --from org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --if-not-exists org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
    flatpak remote-add --if-not-exists winepak https://dl.winepak.org/repo/winepak.flatpakrepo
  21. user5145 revised this gist Oct 9, 2018. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion flatpak install
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,10 @@ flatpak-builder --force-clean builds --repo=localrepo your.application.Client.ym
    flatpak --user install your.application.Client

    Store in a folder
    flatpak-builder --user --force-clean --install builds your.application.Client.yml
    flatpak-builder --user --force-clean --install builds your.application.Client.yml

    Add common repositories
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
    flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
    flatpak remote-add --from org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
  22. user5145 created this gist Oct 9, 2018.
    6 changes: 6 additions & 0 deletions flatpak install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    Store in a repository
    flatpak-builder --force-clean builds --repo=localrepo your.application.Client.yml
    flatpak --user install your.application.Client

    Store in a folder
    flatpak-builder --user --force-clean --install builds your.application.Client.yml