diff options
author | kenshen112 | 2022-09-22 10:54:42 -0700 |
---|---|---|
committer | kenshen112 | 2022-09-22 10:54:42 -0700 |
commit | c898435a477f5adb757045a0d82e8d6a47e524cf (patch) | |
tree | 8a8a24a5789e7d905cc141cdb03d1a2bcf5600e5 | |
parent | acfd91e7f322332a331f5dd33794acdae6798762 (diff) | |
download | aur-c898435a477f5adb757045a0d82e8d6a47e524cf.tar.gz |
Added cheats downloading
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | dev9.install | 10 | ||||
-rw-r--r-- | post.install | 19 |
4 files changed, 23 insertions, 14 deletions
@@ -1,9 +1,9 @@ pkgbase = pcsx2-git pkgdesc = A Sony PlayStation 2 emulator - pkgver = v1.7.0.dev.r4305.g4ee4dfde3 + pkgver = v1.7.0.dev.r4311.g173d62b1c pkgrel = 1 url = https://www.pcsx2.net - install = dev9.install + install = post.install arch = x86_64 license = GPL2 license = GPL3 @@ -3,7 +3,7 @@ # Contributor: Themaister <maister@archlinux.us> pkgname=pcsx2-git -pkgver=v1.7.0.dev.r4305.g4ee4dfde3 +pkgver=v1.7.0.dev.r4311.g173d62b1c pkgrel=1 pkgdesc='A Sony PlayStation 2 emulator' arch=(x86_64) @@ -15,7 +15,7 @@ license=( LGPL3 ) -install=dev9.install +install=post.install OPTIONS+=( debug !strip diff --git a/dev9.install b/dev9.install deleted file mode 100644 index 88acda2e94fd..000000000000 --- a/dev9.install +++ /dev/null @@ -1,10 +0,0 @@ -# For DEV9 netplay support -post_install() -{ - setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt -} - -post_upgrade() -{ - setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt -} diff --git a/post.install b/post.install new file mode 100644 index 000000000000..0890f658d18a --- /dev/null +++ b/post.install @@ -0,0 +1,19 @@ +# For DEV9 netplay support +post_install() +{ + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt + + cd /usr/share/PCSX2/resources + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ws.zip +} + +post_upgrade() +{ + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt + cd /usr/share/PCSX2/resources + sudo rm cheats_ws.zip + sudo rm cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ws.zip +} |