commit dd41196698790e1c23b74763975e9ae97b0889de Author: Oleg Belyaev Date: Sun May 4 16:38:36 2025 +0300 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..5830ae4 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Flatpak version of the ELAN linguisic annotation program + +## Overview +This is [ELAN](https://archive.mpi.nl/tla/elan/) packaged as a Flatpak package, which is especially useful in immutable distros like Fedora Silverblue, which may lack some of the packages that it expects (e.g. Silverblue and other Atomic Desktops lack native VLC packages and X11 libraries). + +## Building +I provide prebuilt .flatpak bundles, but the build can easily be reproduced by running e.g.: + + > flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --install builddir nl.mpi.archive.elan.yml + +Then the Flatpak file can be produced by the following command: + + > flatpak build-bundle repo elan.flatpak nl.mpi.archive.elan + +It would be convenient to integrate this package into [Flathub](https://flathub.org/), but I am not sure if it fits the guidelines at present. In particular, Flathub packages are preferably built from source, while this manifest simply downloads the precompiled ELAN binaries. diff --git a/nl.mpi.archive.elan.desktop b/nl.mpi.archive.elan.desktop new file mode 100644 index 0000000..5f14bd2 --- /dev/null +++ b/nl.mpi.archive.elan.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Type=Application + +Name=ELAN +Comment=Linguistic annotator +Categories=Science;Languages; + +Icon=nl.mpi.archive.elan +Exec=ELAN_6.9 +Terminal=false \ No newline at end of file diff --git a/nl.mpi.archive.elan.metainfo.xml b/nl.mpi.archive.elan.metainfo.xml new file mode 100644 index 0000000..3c7cbda --- /dev/null +++ b/nl.mpi.archive.elan.metainfo.xml @@ -0,0 +1,26 @@ + + + nl.mpi.archive.elan + + ELAN + Linguistic annotator + + CC0-1.0 + GPL-3.0-only + + +

+ With ELAN a user can add an unlimited number of textual annotations to audio and/or video recordings. An annotation can be a sentence, word or gloss, a comment, translation or a description of any feature observed in the media. Annotations can be created on multiple layers, called tiers. Tiers can be hierarchically interconnected. An annotation can either be time-aligned to the media or it can refer to other existing annotations. The content of annotations consists of Unicode text and annotation documents are stored in an XML format (EAF). +

+
+ + nl.mpi.archive.elan.desktop + + + https://www.mpi.nl/tools/elan/atemp/img/ACLEW_Screen_SymPlay.png + + + https://www.mpi.nl/tools/elan/atemp/img/ACLEW_Screen_Joint.png + + +
\ No newline at end of file diff --git a/nl.mpi.archive.elan.yml b/nl.mpi.archive.elan.yml new file mode 100644 index 0000000..aa89f8c --- /dev/null +++ b/nl.mpi.archive.elan.yml @@ -0,0 +1,56 @@ +id: nl.mpi.archive.elan +runtime: org.freedesktop.Platform +runtime-version: '24.08' +sdk: org.freedesktop.Sdk +command: ELAN_6.9 +finish-args: + - --share=ipc + - --socket=x11 + - --socket=pulseaudio + - --share=network + - --filesystem=home + - --device=dri + - --talk-name=org.freedesktop.Flatpak +modules: + - name: elan + buildsystem: simple + build-commands: + - tar -xzf ELAN_6-9_linux.tar.gz --directory=/app/ --strip-components=1 + - install -Dm644 /app/lib/ELAN_6.9.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png + - install -Dm644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop + - install -Dm644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml + sources: + - type: file + url: https://www.mpi.nl/tools/elan/ELAN_6-9_linux.tar.gz + sha256: d2608b5853e2b42881c9439a1fe8d15683282ea0183dffff11fc15d789b112c7 + - type: file + path: nl.mpi.archive.elan.desktop + - type: file + path: nl.mpi.archive.elan.metainfo.xml + - name: ffmpeg + config-opts: + - --enable-pic + - --enable-shared + - --disable-doc + - --disable-static + - --enable-gpl + - --enable-libvpx + - --enable-libmp3lame + - --enable-libvorbis + - --enable-libopus + sources: + - type: archive + url: https://ffmpeg.org/releases/ffmpeg-4.4.5.tar.xz + sha256: f9514e0d3515aee5a271283df71636e1d1ff7274b15853bcd84e144be416ab07 + - name: libvlc + config-opts: + - BUILDCC=gcc + - --disable-lua + - --disable-a52 + - --disable-qt + - --disable-ncurses + - --disable-udev + sources: + - type: archive + url: https://get.videolan.org/vlc/3.0.21/vlc-3.0.21.tar.xz + sha256: 24dbbe1d7dfaeea0994d5def0bbde200177347136dbfe573f5b6a4cee25afbb0