summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a44fafcdb67e2d9d4e9ce663851c85339e68aa25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: chris_L <chrislcenter dash mamoru at yahoo.com dot mx>

pkgname=cemu
pkgver=1.11.1
pkgrel=1
pkgdesc="Wii U emulator (via wine). Includes the Cemuhook plugin and graphic packs"
arch=(x86_64)
url="http://cemu.info/"
license=('custom')
depends=('wine')
source=(
  cemu.sh
  cemu.xpm
  cemu.desktop
  http://cemu.info/releases/cemu_1.11.1.zip
  https://files.sshnuke.net/cemuhook_1112_0554.zip
  https://github.com/slashiee/cemu_graphic_packs/releases/download/appveyor484/graphicPacks_2-484.zip
)
noextract=('cemuhook_1112_0554.zip'
           'graphicPacks_2-484.zip')
install=${pkgname}.install

md5sums=('01118cf3e1ef9e453b5c56d2d27f6967'
         '54d70005a8975812ab54fcfef53f7bde'
         '315e8156c71df6b229acf7472f46568f'
         '6430f06383c530fc0ac76d9ba8f23931'
         '497385d69e68bc60eac8263ea75c87f4'
         '5896506daed6a55e2ab3010020e0c70b')

options=(!strip)

build() {
  cd $srcdir/
  cd cemu_$pkgver
  bsdtar -x -f ../../cemuhook_1112_0554.zip
  cd graphicPacks
  bsdtar -x -f ../../../graphicPacks_2-484.zip
}
package() {
  cd $srcdir
  install -d -m755 $pkgdir/usr/share/
  install -d -m755 $pkgdir/usr/share/$pkgname
  install -d -m755 $pkgdir/usr/bin
  install -m755 cemu.sh $pkgdir/usr/bin/$pkgname
  install -d -m755 $pkgdir/usr/share/applications
  install -d -m755 $pkgdir/usr/share/pixmaps
  install -m644 cemu.desktop $pkgdir/usr/share/applications
  install -m644 cemu.xpm $pkgdir/usr/share/pixmaps/cemu.xpm
  cd cemu_$pkgver
  install -m644 Cemu.exe $pkgdir/usr/share/$pkgname
  install -m644 dbghelp.dll $pkgdir/usr/share/$pkgname
  install -m644 keystone.dll $pkgdir/usr/share/$pkgname
  cp -R gameProfiles $pkgdir/usr/share/$pkgname
  cp -R graphicPacks $pkgdir/usr/share/$pkgname
  cp -R hfiomlc01 $pkgdir/usr/share/$pkgname
  cp -R mlc01 $pkgdir/usr/share/$pkgname
  cp -R shaderCache $pkgdir/usr/share/$pkgname
  find $pkgdir/usr/share/$pkgname -type f -exec chmod 644 {} \;
  find $pkgdir/usr/share/$pkgname -type d -exec chmod 755 {} \;
}