void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.15k forks source link

Package request: OpenBoard #50125

Open Eloitor opened 6 months ago

Eloitor commented 6 months ago

Package name

OpenBoard

Package homepage

https://openboard.ch/index.en.html

Description

Interactive whiteboard for schools and universities

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

MechDR commented 6 months ago

It builds. Packaging will require more work (probably, a lot more). The Debian packaging script has to be taken into account.

# Template file for 'openboard'
pkgname=openboard
version=1.7.0
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-tools-devel qt5-declarative-devel qt5-svg-devel
 qt5-multimedia-devel qt5-webengine-devel qt5-location-devel qt5-webchannel-devel
 quazip-qt5-devel poppler-devel poppler-cpp-devel ffmpeg-devel libgomp-devel
 libva-devel alsa-lib-devel SDL-devel x264-devel libvpx-devel libvorbis-devel
 libtheora-devel opus-devel lame-devel fdk-aac-devel libass-devel which"
makedepends=""
short_desc="OpenBoard is an open source cross-platform interactive white board application designed primarily for use in schools."
maintainer="someone <someone@some.one>"
license="GPL-3.0"
homepage="https://openboard.ch/"
distfiles="https://github.com/OpenBoard-org/OpenBoard/archive/refs/tags/v${version}.tar.gz"
checksum="03b5e6f728339528b8580542302f1d80567f814b10cb94b83df9c996eca125a3"

do_install() {
    vinstall build/linux/release/product/OpenBoard 0644 /opt/openboard
}
MechDR commented 6 months ago

Fully working template, it's modeled after the Ubuntu package they have on their relases page, it cross-builds (tested). It installs in /opt, as per the packaging in the .deb file.

# Template file for 'OpenBoard'
pkgname=OpenBoard
version=1.7.0
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools quazip-devel poppler-devel"
makedepends="qt5-tools-devel qt5-declarative-devel qt5-svg-devel qt5-multimedia-devel
 qt5-webengine-devel qt5-location-devel qt5-webchannel-devel quazip-qt5-devel
 poppler-cpp-devel ffmpeg-devel libgomp-devel libva-devel alsa-lib-devel SDL-devel
 x264-devel libvpx-devel libvorbis-devel libtheora-devel opus-devel lame-devel
 fdk-aac-devel libass-devel"
short_desc="OpenBoard is an open source cross-platform interactive white board application designed primarily for use in schools."
maintainer="someone <someone@some.one>"
license="GPL-3.0"
homepage="https://openboard.ch/"
distfiles="https://github.com/${pkgname}-org/${pkgname}/archive/refs/tags/v${version}.tar.gz"
checksum="03b5e6f728339528b8580542302f1d80567f814b10cb94b83df9c996eca125a3"

pre_install() {
    mkdir -p ${DESTDIR}/usr/bin
    # Make .desktop file.
    echo "[Desktop Entry]" > ${pkgname}.desktop
    echo "Version=${version}" >> ${pkgname}.desktop
    echo "Encoding=UTF-8" >> ${pkgname}.desktop
    echo "Name=${pkgname}" >> ${pkgname}.desktop
    echo "Comment=OpenBoard, an interactive white board application." >> ${pkgname}.desktop
    echo "Exec=${pkgname} %f" >> ${pkgname}.desktop
    echo "Icon=/opt/${pkgname}/${pkgname}.png" >> ${pkgname}.desktop
    echo "StartupNotify=true" >> ${pkgname}.desktop
    echo "Terminal=false" >> ${pkgname}.desktop
    echo "Type=Application" >> ${pkgname}.desktop
    echo "MimeType=application/ubz" >> ${pkgname}.desktop
    echo "Categories=Education;" >> ${pkgname}.desktop
}

do_install() {
    vinstall build/linux/release/product/${pkgname} 0755 /opt/${pkgname}
    vinstall resources/images/${pkgname}.png 0644 /opt/${pkgname}
    vinstall ${pkgname}.desktop 0644 /usr/share/applications
    ln -sf /opt/${pkgname}/${pkgname} ${DESTDIR}/usr/bin/${pkgname}
    vcopy resources/customizations /opt/${pkgname}
    vcopy resources/i18n /opt/${pkgname}
    rm -f ${DESTDIR}/opt/${pkgname}/i18n/Localizable.strings
    vcopy resources/etc /opt/${pkgname}
    vcopy resources/linux /opt/${pkgname}
    mv -f ${DESTDIR}/opt/${pkgname}/linux/* ${DESTDIR}/opt/${pkgname}/etc
    rm -rf ${DESTDIR}/opt/${pkgname}/linux
    rm -f ${DESTDIR}/opt/${pkgname}/etc/run.sh
    vcopy resources/library /opt/${pkgname}
    vcopy resources/startupHints /opt/${pkgname}
}
Eloitor commented 6 months ago

I opened an issue upstream requesting a .desktop file https://github.com/OpenBoard-org/OpenBoard/issues/952

MechDR commented 6 months ago

Meeh, as you wish... they generate it on the fly with the package script.

MechDR commented 5 months ago

Any progress on this?

Eloitor commented 5 months ago

Maybe next week I'll package it