first commit

This commit is contained in:
Oleg Belyaev 2025-05-04 16:38:36 +03:00
commit dd41196698
4 changed files with 108 additions and 0 deletions

15
README.md Normal file
View file

@ -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.

View file

@ -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

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>nl.mpi.archive.elan</id>
<name>ELAN</name>
<summary>Linguistic annotator</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
<description>
<p>
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).
</p>
</description>
<launchable type="desktop-id">nl.mpi.archive.elan.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://www.mpi.nl/tools/elan/atemp/img/ACLEW_Screen_SymPlay.png</image>
</screenshot>
<screenshot>
<image>https://www.mpi.nl/tools/elan/atemp/img/ACLEW_Screen_Joint.png</image>
</screenshot>
</screenshots>
</component>

56
nl.mpi.archive.elan.yml Normal file
View file

@ -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