diff options
author | Nadia Holmquist Pedersen | 2023-11-25 03:47:37 +0100 |
---|---|---|
committer | Nadia Holmquist Pedersen | 2023-11-25 03:47:37 +0100 |
commit | dedb96f8bfe7f54eea2585ea7f1a494d332fad8d (patch) | |
tree | 3a9d89f440ee2b11868800289bbbaf4f151949e7 | |
parent | 3ec2a64e3ccc7accbbace4cdf70f29f4bd2a0161 (diff) | |
download | aur-dedb96f8bfe7f54eea2585ea7f1a494d332fad8d.tar.gz |
Use upstream's app info
-rw-r--r-- | .SRCINFO | 4 | ||||
-rwxr-xr-x | NanoBoyAdvance-Qt.sh | 14 | ||||
-rw-r--r-- | NanoBoyAdvance.desktop | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
4 files changed, 7 insertions, 49 deletions
@@ -17,13 +17,9 @@ pkgbase = nanoboyadvance-git source = git+https://github.com/fmtlib/fmt.git source = git+https://github.com/ToruNiina/toml11.git source = git+https://github.com/selmf/unarr.git - source = NanoBoyAdvance-Qt.sh - source = NanoBoyAdvance.desktop sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP - sha256sums = d4518786256bbe6c5525c9200b3978cd774ffa74b7a3cd411de0aa483903f4ea - sha256sums = c7bb57aa68471e06b98ba85bcc5260ce58570fdfc3812b0e8241c9ccdbbd2874 pkgname = nanoboyadvance-git diff --git a/NanoBoyAdvance-Qt.sh b/NanoBoyAdvance-Qt.sh deleted file mode 100755 index 6bb436cbf50e..000000000000 --- a/NanoBoyAdvance-Qt.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -confdir=. - -if [[ ! -z "$XDG_CONFIG_HOME" ]]; then - confdir="${XDG_CONFIG_HOME}/NanoBoyAdvance-Qt" -elif [[ ! -z "$HOME" ]]; then - confdir="${HOME}/.config/NanoBoyAdvance-Qt" -fi - -mkdir -p "$confdir" -cd "$confdir" - -exec -a "$confdir/NanoBoyAdvance-Qt" /usr/lib/NanoBoyAdvance-Qt "$@" diff --git a/NanoBoyAdvance.desktop b/NanoBoyAdvance.desktop deleted file mode 100644 index ee2612c2b00b..000000000000 --- a/NanoBoyAdvance.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Version=1.0 -Icon=com.github.nba-emu.NanoBoyAdvance -Exec=NanoBoyAdvance-Qt %f -Terminal=false -Type=Application -Name=NanoBoyAdvance -GenericName=Game Boy Advance Emulator -Comment=A highly accurate Nintendo Game Boy Advance emulator. -Categories=Game;Emulator; -MimeType=application/x-gameboy-advance-rom;application/x-agb-rom;application/x-gba-rom; -Keywords=emulator;Nintendo;advance;gba;Game Boy Advance; @@ -12,24 +12,17 @@ license=(GPL3) makedepends=(cmake make git gcc imagemagick) depends=(qt5-base glew sdl2) -_vendor="com.github.nba-emu" -_identifier="${_vendor}.NanoBoyAdvance" - source=( "git+https://github.com/nba-emu/NanoBoyAdvance.git" "git+https://github.com/fmtlib/fmt.git" "git+https://github.com/ToruNiina/toml11.git" "git+https://github.com/selmf/unarr.git" - NanoBoyAdvance-Qt.sh - NanoBoyAdvance.desktop ) sha256sums=('SKIP' 'SKIP' 'SKIP' - 'SKIP' - 'd4518786256bbe6c5525c9200b3978cd774ffa74b7a3cd411de0aa483903f4ea' - 'c7bb57aa68471e06b98ba85bcc5260ce58570fdfc3812b0e8241c9ccdbbd2874') + 'SKIP') pkgver() { cd NanoBoyAdvance @@ -47,21 +40,16 @@ prepare() { build() { cd "$srcdir/NanoBoyAdvance" - cmake -B build -DCMAKE_BUILD_TYPE=Release + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DPORTABLE_MODE=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build } package() { cd "$srcdir/NanoBoyAdvance" - install -Dm755 build/bin/qt/NanoBoyAdvance "${pkgdir}/usr/lib/NanoBoyAdvance-Qt" - install -Dm755 "${srcdir}/NanoBoyAdvance-Qt.sh" "${pkgdir}/usr/bin/NanoBoyAdvance-Qt" - install -Dm644 "${srcdir}/NanoBoyAdvance.desktop" "${pkgdir}/usr/share/applications/${_identifier}.desktop" - - convert "${srcdir}/NanoBoyAdvance/src/platform/qt/rc/app.ico" icon.png - - for icon in icon-*.png; do - size=$(identify -format "%[fx:w]x%[fx:h]" "$icon") - install -Dm644 "$icon" "${pkgdir}/usr/share/icons/hicolor/${size}/apps/${_identifier}.png" - done + DESTDIR="$pkgdir" cmake -P build/bin/qt/cmake_install.cmake } |