From: MechDR <MechDR@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: OpenBoard
Date: Tue, 07 May 2024 17:20:00 +0200 [thread overview]
Message-ID: <20240507152000.681642201F@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50125@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2745 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/50125#issuecomment-2098684669
Comment:
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}
}
````
next prev parent reply other threads:[~2024-05-07 15:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 6:14 [ISSUE] " Eloitor
2024-05-04 23:21 ` MechDR
2024-05-04 23:21 ` MechDR
2024-05-04 23:25 ` MechDR
2024-05-04 23:26 ` MechDR
2024-05-04 23:29 ` MechDR
2024-05-04 23:29 ` MechDR
2024-05-07 15:18 ` MechDR
2024-05-07 15:19 ` MechDR
2024-05-07 15:20 ` MechDR [this message]
2024-05-07 15:40 ` Eloitor
2024-05-07 15:54 ` MechDR
2024-05-18 23:04 ` MechDR
2024-05-19 11:47 ` Eloitor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240507152000.681642201F@inbox.vuxu.org \
--to=mechdr@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).