Skarsnik / QUsb2snes

A Qt based webserver for usb2snes. Users: go check usb2snes.com
https://skarsnik.github.io/QUsb2snes/
GNU General Public License v3.0
52 stars 34 forks source link

AUR package failes to build becuase of file location changes #127

Closed JamesOsborn-SE closed 7 months ago

JamesOsborn-SE commented 11 months ago

I'm not sure if the devs here maintain this but I don't know how to contact the arch AUR maintainer with the username: aconscious

Sums up the issue:

le_tucan commented on [2022-08-29 13:11 (MST)]

I have noticed, that the path for the icon has changed (see: https://github.com/Skarsnik/QUsb2snes/commit/2501d549a6d85fb54b6faaed8d09d9791b526772). Therefore, line 34 and 55 need to have "ui/icons/" before the file names. Then the package can build successfully again.

the full file with those changes:

# Maintainer: Aconscious
pkgname=qusb2snes-git
pkgver=r485.687455a
pkgrel=1
pkgdesc="A Qt based webserver for usb2snes"
arch=("x86_64")
license=("GPL3")
arch=("x86_64")
install=.install
provides=("QUsb2Snes"
          "QFile2Snes")
makedepends=("git"
             "imagemagick")
depends=("qt5-websockets"
         "qt5-serialport")
url="https://github.com/Skarsnik/QUsb2snes"
source=("git+https://github.com/Skarsnik/QUsb2snes"
        "git+https://github.com/black-sliver/EmuNWAccess-qt"
        "QUsb2Snes.desktop"
        "QFile2Snes.desktop")
md5sums=("SKIP"
         "SKIP"
         "SKIP"
         "SKIP")
_projname="QUsb2snes"

pkgver() {
    cd "$srcdir/$_projname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/$_projname"
    convert ./ui/icons/icon64x64.ico icon.png
    git submodule init
    git config submodule.EmuNWAccess-qt $srcdir/EmuNWaccess-qt
    git submodule update
}

build() {
    cd "$srcdir/$_projname"
    qmake QUsb2snes.pro CONFIG+='release'
    make
    cd "QFile2Snes"
    qmake QFile2Snes.pro CONFIG+='release'
    make
}

package() {
    cd "$srcdir/$_projname"
    install -dm 755 "$pkgdir/usr/bin"
    install -dm 755 "$pkgdir/usr/share/pixmaps"
    install -dm 755 "$pkgdir/usr/share/applications"
    install -m 644 icon.png "$pkgdir/usr/share/pixmaps/QUsb2snes.png"
    install -m 755 "QUsb2Snes" "$pkgdir/usr/bin/QUsb2Snes"
    cd "QFile2Snes"
    install -m 755 "QFile2Snes" "$pkgdir/usr/bin/QFile2Snes"
    install -m 644 "icon50x50.png" "$pkgdir/usr/share/pixmaps/QFile2Snes.png"
    cd "$srcdir"
    install -m 644 "QUsb2Snes.desktop" "$pkgdir/usr/share/applications/QUsb2Snes.desktop"
    install -m 644 "QFile2Snes.desktop" "$pkgdir/usr/share/applications/QFile2Snes.desktop"
}
Twooey commented 11 months ago

You should go through AUR and report this. If the maintainer doesn't fix it, you can go through the process to take it over.

JamesOsborn-SE commented 11 months ago

You should go through AUR and report this. If the maintainer doesn't fix it, you can go through the process to take it over.

It's been reported this was the only way I could think of trying to reach out to the maintainer.