use upstream icon and desktop file, fix version and remove empty arrays

This commit is contained in:
horstderheld 2023-02-20 20:14:32 +01:00
parent 3d89049912
commit 7eaccfbebb
2 changed files with 28 additions and 56 deletions

View file

@ -1,21 +1,18 @@
pkgbase = cemu-bin pkgbase = cemu-bin
pkgdesc = Nintendo Wii U Emulator pkgdesc = Nintendo Wii U Emulator
pkgver = 2.0 pkgver = 2.0.25
pkgrel = 25 pkgrel = 1
url = https://cemu.info url = https://cemu.info
arch = x86_64 arch = x86_64
license = MPL-2.0 license = MPL2
makedepends = patchelf makedepends = patchelf
depends = pugixml depends = glu
depends = pulseaudio
depends = opengl-driver
depends = vulkan-driver
depends = icu
depends = gtk3
depends = graphite depends = graphite
depends = gtk3
depends = libice
depends = libsm
depends = pcre depends = pcre
depends = systemd depends = vulkan-driver
depends = libffi
provides = cemu provides = cemu
conflicts = cemu conflicts = cemu
conflicts = cemu-git conflicts = cemu-git
@ -24,12 +21,10 @@ pkgbase = cemu-bin
options = libtool options = libtool
options = emptydirs options = emptydirs
source = https://github.com/cemu-project/Cemu/releases/download/v2.0-25/cemu-2.0-25-ubuntu-20.04-x64.zip source = https://github.com/cemu-project/Cemu/releases/download/v2.0-25/cemu-2.0-25-ubuntu-20.04-x64.zip
source = info.cemu.Cemu.desktop source = cemu.desktop::https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop
source = info.cemu.Cemu.metainfo.xml source = cemu.png::https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png
source = info.cemu.Cemu.png
sha256sums = c1f4c7438752c876bb6cadaf74bee1c783edad41ebd2402bed2c0fb046240bb6 sha256sums = c1f4c7438752c876bb6cadaf74bee1c783edad41ebd2402bed2c0fb046240bb6
sha256sums = SKIP sha256sums = 3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490
sha256sums = SKIP sha256sums = 6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33
sha256sums = SKIP
pkgname = cemu-bin pkgname = cemu-bin

View file

@ -1,48 +1,26 @@
# Maintainer: Donn <me@donn.website> # Maintainer: Donn <me@donn.website>
pkgname=cemu-bin pkgname=cemu-bin
pkgver=2.0 pkgver=2.0.25
pkgrel=25 pkgrel=1
pkgdesc="Nintendo Wii U Emulator" pkgdesc="Nintendo Wii U Emulator"
arch=('x86_64') arch=('x86_64')
url="https://cemu.info" url="https://cemu.info"
license=('MPL-2.0') license=('MPL2')
groups=() depends=('glu' 'graphite' 'gtk3' 'libice' 'libsm' 'pcre' 'vulkan-driver')
depends=( makedepends=('patchelf')
'pugixml'
'pulseaudio'
'opengl-driver'
'vulkan-driver'
'icu'
'gtk3'
'graphite'
'pcre'
'systemd'
'libffi'
)
makedepends=(
'patchelf'
)
provides=('cemu') provides=('cemu')
conflicts=('cemu' 'cemu-git') conflicts=('cemu' 'cemu-git')
options=(!strip !docs libtool emptydirs) options=(!strip !docs libtool emptydirs)
install= source=("https://github.com/cemu-project/Cemu/releases/download/v${pkgver%.*}-${pkgver##*.}/cemu-${pkgver%.*}-${pkgver##*.}-ubuntu-20.04-x64.zip"
changelog= "cemu.desktop::https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop"
source=( "cemu.png::https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png"
"https://github.com/cemu-project/Cemu/releases/download/v${pkgver}-${pkgrel}/cemu-${pkgver}-${pkgrel}-ubuntu-20.04-x64.zip"
"info.cemu.Cemu.desktop"
"info.cemu.Cemu.metainfo.xml"
"info.cemu.Cemu.png"
)
noextract=()
sha256sums=(
'c1f4c7438752c876bb6cadaf74bee1c783edad41ebd2402bed2c0fb046240bb6'
'SKIP'
'SKIP'
'SKIP'
) )
sha256sums=('c1f4c7438752c876bb6cadaf74bee1c783edad41ebd2402bed2c0fb046240bb6'
'3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490'
'6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33')
package() { package() {
CEMU_BIN_PATH="$srcdir/Cemu_${pkgver}-${pkgrel}/Cemu" CEMU_BIN_PATH="$srcdir/Cemu_${pkgver%.*}-${pkgver##*.}/Cemu"
# Patch # Patch
patchelf --replace-needed libpcre.so.3 libpcre.so $CEMU_BIN_PATH patchelf --replace-needed libpcre.so.3 libpcre.so $CEMU_BIN_PATH
@ -59,9 +37,8 @@ package() {
chmod +x $CEMU_BIN_PATH chmod +x $CEMU_BIN_PATH
mkdir -p "$pkgdir/usr/share/cemu" mkdir -p "$pkgdir/usr/share/cemu"
cp -r "$srcdir/Cemu_${pkgver}-${pkgrel}"/* "$pkgdir/usr/share/cemu" cp -r "$srcdir/Cemu_${pkgver%.*}-${pkgver##*.}"/* "$pkgdir/usr/share/cemu"
install -Dm644 -t "$pkgdir"/usr/share/applications info.cemu.Cemu.desktop install -Dm644 -t "$pkgdir"/usr/share/applications cemu.desktop
install -Dm644 -t "$pkgdir"/usr/share/metainfo info.cemu.Cemu.metainfo.xml install -Dm644 -t "$pkgdir"/usr/share/icons/hicolor/128x128/apps cemu.png
install -Dm644 -t "$pkgdir"/usr/share/icons/hicolor/128x128/apps info.cemu.Cemu.png
} }