summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a5b03298680e5503eab668342f462c85c702ef9 (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.2
pkgrel=2
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.2.zip
  https://files.sshnuke.net/cemuhook_1112_0554.zip
  https://github.com/slashiee/cemu_graphic_packs/releases/download/appveyor495/graphicPacks_2-495.zip
)
noextract=('cemuhook_1112_0554.zip'
           'graphicPacks_2-495.zip')
install=${pkgname}.install

md5sums=('01118cf3e1ef9e453b5c56d2d27f6967'
         '54d70005a8975812ab54fcfef53f7bde'
         '9ca016ad209689c61d7a9ff8df4dd371'
         'bc180c58791ed4294293478e08408f3d'
         '497385d69e68bc60eac8263ea75c87f4'
         'f87f1f6b32223536f1c38a762831433b')

options=(!strip)

build() {
  cd $srcdir/
  cd cemu$pkgver
  bsdtar -x -f ../../cemuhook_1112_0554.zip
  cd graphicPacks
  bsdtar -x -f ../../../graphicPacks_2-495.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 {} \;
}