Package Details: fs2-knossos-dotnet v1.2.4-1

Git Clone URL: https://aur.archlinux.org/fs2-knossos-dotnet.git (read-only, click to copy)
Package Base: fs2-knossos-dotnet
Description: A multi platform launcher for Freespace 2 Open using .NET 6.0 and AvaloniaUI
Upstream URL: https://github.com/KnossosNET/Knossos.NET
Licenses: GPL-3.0-only
Submitter: topas-rec
Maintainer: topas-rec
Last Packager: topas-rec
Votes: 2
Popularity: 0.000612
First Submitted: 2023-11-15 18:30 (UTC)
Last Updated: 2024-10-10 10:40 (UTC)

Latest Comments

topas-rec commented on 2024-05-04 05:59 (UTC)

Asked for a workaround

topas-rec commented on 2024-05-04 05:51 (UTC) (edited on 2024-05-04 05:52 (UTC) by topas-rec)

Thanks for flagging this out of date.

I plan not to update the package until the pacman issue mentioned in my last comment is resolved. See the reason below:

The reason: When I upgrade the package everyone will get a notification that it has been upgraded and will most likely upgrade / build it. Then the package is unusable, because building it on a recent arch doesn't work until you downgrade pacman. I haven't tried to downgrade pacman - I am afraid is intruduces complications.

If you disagree on this, please let me know why. Maybe I am wrong here. If you can report back to the pacman issue so that it get solved.

If you want to help, try to build with this updated PKGBUILD

Updated PKGBUILD (Caution might destroy binaries)
# Maintainer: Tobias Boesch <tobias.boesch at googlemail.com>

pkgname=('fs2-knossos-dotnet')
pkgver=v1.1.0
_extpkgname='Knossos.NET'
pkgrel=1
pkgdesc="A multi platform launcher for Freespace 2 Open using .NET 6.0 and AvaloniaUI"
arch=('x86_64')
url='https://github.com/KnossosNET/Knossos.NET'
_commit='7b201a0bdcc3c01a602ecd13ffd5f33fd1537008'  # Upstream only signs commits, not tags. Using commit to be able to verify the source.
                                                    # https://github.com/KnossosNET/Knossos.NET/commit/7b201a0bdcc3c01a602ecd13ffd5f33fd1537008
license=('GPL-3.0-only')
makedepends=(
  'dotnet-sdk-6.0'
  'git'
)
depends=(
  'gcc-libs'
  'glibc'
  'hicolor-icon-theme'
  'dotnet-runtime-6.0'
)
conflicts=(
)
validpgpkeys=(
  968479A1AFF927E37D1A566BB5690EEEBB952194  # Fingerprint from gpg
                                            # Key from
                                            #   https://github.com/web-flow.gpg
)
source=(
  "git+$url.git#commit=${_commit}?signed"
  'Knossos.NET.desktop'
)
sha512sums=('SKIP'
            '088987d8d0b9ee329c3602f56521e9322feb1dd53d84eccc501dfea25cc00b70f10d9cfc00971848fb41251cd124df45522fd6384fe4ad83748642a05e8a7bfa')
options=(
  !strip # Stripping file Knossos.NET seems to destroy it
)

build() {
  cd "$_extpkgname"
  dotnet publish --framework net6.0 --arch x64 --os linux -p:PublishSingleFile=true --self-contained false $_extpkgname/$_extpkgname.csproj
}

package() {
  mkdir --parents "${pkgdir}/usr/bin/$_extpkgname"
  cp "${srcdir}/$_extpkgname/$_extpkgname/bin/Debug/net6.0/linux-x64/publish/$_extpkgname" "${pkgdir}/usr/bin/$_extpkgname"
  install -D -m644 "${srcdir}/$_extpkgname/packaging/linux/knossos-256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/$_extpkgname.png"
  install -D -m644 "${srcdir}/Knossos.NET.desktop" "${pkgdir}/usr/share/applications/Knossos.NET.desktop"
}

topas-rec commented on 2024-03-24 19:41 (UTC) (edited on 2024-03-25 09:45 (UTC) by topas-rec)

Current pacman makepkg destroys .NET6 binaries on building the package.

See Discussion in forum and https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/19.

Downgrade to pacman 6.0.2-9 to build this.

topas-rec commented on 2023-11-18 17:23 (UTC)

Thanks for the review. On my systemit works fine, but it seems no other dekstop file on my arch uses the path entry in the desktop file and it works without for me, too. I'll remove it.

themaddin commented on 2023-11-17 19:42 (UTC)

Runs fine when lauched from Konsole, but in KDE/Wayland, I can only start with the .desktop launcher after I comment out the Path key.