Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: OpenBoard #50125

Open
Eloitor opened this issue Apr 30, 2024 · 6 comments
Open

Package request: OpenBoard #50125

Eloitor opened this issue Apr 30, 2024 · 6 comments
Labels
request Package request

Comments

@Eloitor
Copy link
Contributor

Eloitor commented Apr 30, 2024

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

@Eloitor Eloitor added the request Package request label Apr 30, 2024
@MechDR
Copy link

MechDR commented May 4, 2024

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
Copy link

MechDR commented May 7, 2024

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
Copy link
Contributor Author

Eloitor commented May 7, 2024

I opened an issue upstream requesting a .desktop file OpenBoard-org/OpenBoard#952

@MechDR
Copy link

MechDR commented May 7, 2024

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

@MechDR
Copy link

MechDR commented May 18, 2024

Any progress on this?

@Eloitor
Copy link
Contributor Author

Eloitor commented May 19, 2024

Maybe next week I'll package it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

No branches or pull requests

2 participants