You can fix desktop file by adding --custom "StartupWMClass=x16emu" at the end of the gendesk line.
Here is a fixed PKGBUILD to use if you want to:
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
# Contributor: Julien Savard <juju@juju2143.ca>
pkgname=x16-emulator
pkgver=r47
pkgrel=2
pkgdesc="An emulator for The 8-Bit Guy's Commander X16"
arch=('x86_64')
url="http://commanderx16.com/"
license=('BSD-2-Clause')
groups=('commander-x16')
depends=('sdl2' "x16-rom=${pkgver}")
makedepends=('clang' 'gendesk' 'pandoc')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/X16Community/$pkgname/archive/$pkgver.tar.gz"
"fix-git-rev.patch"
"modify-base-path.patch"
)
sha256sums=('8ff048f413c9d74842576fd0a2789961063d1451d8d7584615c6c8adde1bce75'
'cf233d6fd3cd16f440f1443695d261fb7fc80b4d954ded9ee225f8ec572edef0'
'e9ef39655bbfa6d67e8b0a83a46ce1b9d02be0b4fd91af045a3d8cb41fb56a80')
prepare() {
cd "$pkgname-$pkgver"
patch -uN -p1 < ../fix-git-rev.patch
patch -uN -p1 < ../modify-base-path.patch
sed -i -e 's/^\(LDFLAGS=.*\)/\1 '"${LDFLAGS}/" Makefile
gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name "X16 Emulator" --icon "$pkgname" --exec "x16emu" --categories "Game;Emulator" --custom "StartupWMClass=x16emu"
}
build() {
cd "$pkgname-$pkgver"
# https://aur.archlinux.org/packages/x16-emulator#comment-827725
export CC="clang ${CFLAGS} -Wno-macro-redefined"
export CXX="clang++ ${CXXFLAGS}"
make
pandoc --from gfm --to html -c github-pandoc.css --standalone --metadata pagetitle="X16 Emulator" README.md --output README.html
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 x16emu "$pkgdir/usr/bin/x16emu"
install -Dm755 makecart "$pkgdir/usr/bin/makecart"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 github-pandoc.css "$pkgdir/usr/share/doc/$pkgname/github-pandoc.css"
install -Dm644 README.html "$pkgdir/usr/share/doc/$pkgname/README.html"
install -Dm644 RELEASES.md "$pkgdir/usr/share/doc/$pkgname/RELEASES.md"
install -Dm644 quickstart-linux.md "$pkgdir/usr/share/doc/$pkgname/quickstart-linux.md"
install -Dm644 .gh/logo.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}
Pinned Comments
Juju commented on 2020-02-09 04:46 (UTC)
Good news everyone: the X16 team upstream just announced they have a preliminary agreement with Cloanto, which means they don't have to rewrite the KERNAL (aka x16-rom) from scratch, and the repos are officially back online! So I'm going to revert the PKGBUILDs as they were before real soon.
Give a huge thanks to Perifractic who made this possible (you can find him on YouTube), and vote for the packages if you like them :)