add metadata.xml again and _srcver var
This commit is contained in:
parent
2c9f1fb5af
commit
65a619f8af
2 changed files with 21 additions and 15 deletions
8
.SRCINFO
8
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = cemu-bin
|
pkgbase = cemu-bin
|
||||||
pkgdesc = Nintendo Wii U Emulator
|
pkgdesc = Nintendo Wii U Emulator
|
||||||
pkgver = 2.0.27
|
pkgver = 2.0.27
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://cemu.info
|
url = https://cemu.info
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = MPL2
|
license = MPL2
|
||||||
|
@ -21,10 +21,12 @@ pkgbase = cemu-bin
|
||||||
options = libtool
|
options = libtool
|
||||||
options = emptydirs
|
options = emptydirs
|
||||||
source = https://github.com/cemu-project/Cemu/releases/download/v2.0-27/cemu-2.0-27-ubuntu-20.04-x64.zip
|
source = https://github.com/cemu-project/Cemu/releases/download/v2.0-27/cemu-2.0-27-ubuntu-20.04-x64.zip
|
||||||
source = cemu.desktop::https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop
|
source = 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
|
source = https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png
|
||||||
|
source = https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.metainfo.xml
|
||||||
sha256sums = 2afd679310cc51d13c785d3bf8e1f391ebd84cf8aa2416c9e33f6ccf246b3f70
|
sha256sums = 2afd679310cc51d13c785d3bf8e1f391ebd84cf8aa2416c9e33f6ccf246b3f70
|
||||||
sha256sums = 3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490
|
sha256sums = 3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490
|
||||||
sha256sums = 6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33
|
sha256sums = 6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33
|
||||||
|
sha256sums = 3c0ffba6874ebabb4341911b401d4b7062fefeb527badc5caa93355e5968848b
|
||||||
|
|
||||||
pkgname = cemu-bin
|
pkgname = cemu-bin
|
||||||
|
|
28
PKGBUILD
28
PKGBUILD
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
pkgname=cemu-bin
|
pkgname=cemu-bin
|
||||||
pkgver=2.0.27
|
pkgver=2.0.27
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Nintendo Wii U Emulator"
|
pkgdesc="Nintendo Wii U Emulator"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://cemu.info"
|
url="https://cemu.info"
|
||||||
|
@ -13,15 +13,18 @@ makedepends=('patchelf')
|
||||||
provides=('cemu')
|
provides=('cemu')
|
||||||
conflicts=('cemu' 'cemu-git')
|
conflicts=('cemu' 'cemu-git')
|
||||||
options=(!strip !docs libtool emptydirs)
|
options=(!strip !docs libtool emptydirs)
|
||||||
source=("https://github.com/cemu-project/Cemu/releases/download/v${pkgver%.*}-${pkgver##*.}/cemu-${pkgver%.*}-${pkgver##*.}-ubuntu-20.04-x64.zip"
|
_srcver=${pkgver%.*}-${pkgver##*.}
|
||||||
"cemu.desktop::https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop"
|
source=("https://github.com/cemu-project/Cemu/releases/download/v$_srcver/cemu-$_srcver-ubuntu-20.04-x64.zip"
|
||||||
"cemu.png::https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png")
|
"https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop"
|
||||||
|
"https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png"
|
||||||
|
"https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.metainfo.xml")
|
||||||
sha256sums=('2afd679310cc51d13c785d3bf8e1f391ebd84cf8aa2416c9e33f6ccf246b3f70'
|
sha256sums=('2afd679310cc51d13c785d3bf8e1f391ebd84cf8aa2416c9e33f6ccf246b3f70'
|
||||||
'3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490'
|
'3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490'
|
||||||
'6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33')
|
'6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33'
|
||||||
|
'3c0ffba6874ebabb4341911b401d4b7062fefeb527badc5caa93355e5968848b')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $srcdir/Cemu_${pkgver%.*}-${pkgver##*.}
|
cd $srcdir/Cemu_$_srcver
|
||||||
|
|
||||||
_libs=('libpcre.so.3' 'libffi.so.7' 'libicuuc.so.71' 'libicui18n.so.71' 'libicudata.so.71')
|
_libs=('libpcre.so.3' 'libffi.so.7' 'libicuuc.so.71' 'libicui18n.so.71' 'libicudata.so.71')
|
||||||
for lib in ${_libs[@]}
|
for lib in ${_libs[@]}
|
||||||
|
@ -34,14 +37,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $srcdir/Cemu_${pkgver%.*}-${pkgver##*.}
|
cd $srcdir/Cemu_$_srcver
|
||||||
|
|
||||||
install -Dm 755 ./Cemu $pkgdir/usr/bin/cemu
|
install -Dm 755 ./Cemu $pkgdir/usr/bin/cemu
|
||||||
|
|
||||||
install -d $pkgdir/usr/share/cemu
|
install -d $pkgdir/usr/share/Cemu
|
||||||
cp -r ./{gameProfiles,resources,shaderCache} $pkgdir/usr/share/cemu
|
cp -r ./{gameProfiles,resources,shaderCache} $pkgdir/usr/share/Cemu
|
||||||
|
|
||||||
sed -i -e '/^Icon=/cIcon=cemu' -e '/^Exec=Cemu/cExec=cemu' $srcdir/cemu.desktop
|
sed -i -e '/^Exec=Cemu/cExec=cemu' $srcdir/info.cemu.Cemu.desktop
|
||||||
install -Dm 644 -t $pkgdir/usr/share/applications $srcdir/cemu.desktop
|
install -Dm 644 -t $pkgdir/usr/share/applications $srcdir/info.cemu.Cemu.desktop
|
||||||
install -Dm 644 -t $pkgdir/usr/share/icons/hicolor/128x128/apps $srcdir/cemu.png
|
install -Dm 644 -t $pkgdir/usr/share/icons/hicolor/128x128/apps $srcdir/info.cemu.Cemu.png
|
||||||
|
install -Dm 644 -t $pkgdir/usr/share/metainfo $srcdir/info.cemu.Cemu.metainfo.xml
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue