diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rw-r--r-- | m64p.desktop | 2 |
3 files changed, 22 insertions, 8 deletions
@@ -1,13 +1,14 @@ pkgbase = m64p pkgdesc = Mupen64Plus with custom plugins and Qt5 GUI pkgver = 20200504 - pkgrel = 1 + pkgrel = 2 url = https://m64p.github.io/ arch = x86_64 license = GPL3 makedepends = git makedepends = cmake makedepends = nasm + makedepends = icoutils depends = freetype2 depends = glu depends = hidapi @@ -19,6 +20,7 @@ pkgbase = m64p depends = qt5-base depends = sdl2 depends = zlib + depends = hicolor-icon-theme provides = mupen64plus provides = mupen64plus-gui provides = mupenplus-video-gliden64 @@ -46,7 +48,7 @@ pkgbase = m64p sha256sums = SKIP sha256sums = 6871b495ace8a9005d93ce3e9103a15111a67793812dd5158072c981c4c3a5a8 sha256sums = a999739626fc3e9d0102b65014c436bf4e9039587ccac174334672f3925f4495 - sha256sums = b884fc86180346226eb7e8bf8560d2b789318e810c9e26b6adbe7d8d047188df + sha256sums = 8df4e8076d28a1bc44f41b0129a9935da9839e8a8cb9944206757e47da561808 pkgname = m64p @@ -2,14 +2,14 @@ pkgname=m64p pkgver=20200504 -pkgrel=1 +pkgrel=2 pkgdesc='Mupen64Plus with custom plugins and Qt5 GUI' arch=('x86_64') url='https://m64p.github.io/' license=('GPL3') depends=('freetype2' 'glu' 'hidapi' 'libgl' 'libpng' 'libsamplerate' - 'minizip' 'p7zip' 'qt5-base' 'sdl2' 'zlib') -makedepends=('git' 'cmake' 'nasm') + 'minizip' 'p7zip' 'qt5-base' 'sdl2' 'zlib' 'hicolor-icon-theme') +makedepends=('git' 'cmake' 'nasm' 'icoutils') provides=('mupen64plus' 'mupen64plus-gui' 'mupenplus-video-gliden64') conflicts=('mupen64plus' 'mupen64plus-gui' 'mupenplus-video-gliden64') source=("git+https://github.com/loganmc10/m64p.git#tag=$(LC_ALL='C' date -d "$pkgver" +%b%-d%Y | tr '[:upper:]' '[:lower:]')" @@ -33,7 +33,7 @@ sha256sums=('SKIP' 'SKIP' '6871b495ace8a9005d93ce3e9103a15111a67793812dd5158072c981c4c3a5a8' 'a999739626fc3e9d0102b65014c436bf4e9039587ccac174334672f3925f4495' - 'b884fc86180346226eb7e8bf8560d2b789318e810c9e26b6adbe7d8d047188df') + '8df4e8076d28a1bc44f41b0129a9935da9839e8a8cb9944206757e47da561808') prepare() { git -C m64p submodule init @@ -58,7 +58,19 @@ package() { # mupen64plus-gui install -D -m755 m64p/mupen64plus/mupen64plus-gui -t "${pkgdir}/usr/bin" install -D -m644 m64p.desktop -t "${pkgdir}/usr/share/applications" - install -D -m644 mupen64plus-gui/mupen64plus.ico "${pkgdir}/usr/share/pixmaps/m64p.ico" + icotool -x mupen64plus-gui/mupen64plus.ico + local _count='1' + local _depth + local _file + local _res + while read -r -d '' _file + do + _depth="$(printf '%s' "$_file" | sed 's/\.png$//;s/^.*x//' )" + _res="$(printf '%s' "$_file" | sed 's/\.png$//;s/^.*_//;s/x.*$//')" + install -D -m644 "mupen64plus_${_count}_${_res}x${_res}x${_depth}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${_res}x${_res}/apps/mupen64plus.png" + _count="$((_count + 1))" + done < <(find -maxdepth 1 -type f -name 'mupen64plus_*_*x*x*.png' -print0 | sort -z) # mupen64plus components local _component diff --git a/m64p.desktop b/m64p.desktop index e5efa17e7a98..bd5b37020263 100644 --- a/m64p.desktop +++ b/m64p.desktop @@ -5,7 +5,7 @@ Name=m64p Comment=Mupen64Plus with custom plugins and Qt5 GUI Path=/usr/bin Exec=mupen64plus-gui -Icon=mupen64plus-gui +Icon=mupen64plus Terminal=false StartupNotify=false Categories=Game; |