desktop/dolphin-emu/PKGBUILD

47 lines
1.1 KiB
Bash
Raw Normal View History

2016-09-09 03:15:18 +08:00
pkgname=dolphin-emu
2018-08-10 04:38:41 +08:00
pkgver=5.0.r7309.10d230a512
pkgrel=1
2016-09-09 03:15:18 +08:00
pkgdesc='A GameCube / Wii / Triforce emulator'
arch=('x86_64')
url='http://www.dolphin-emu.org/'
license=('GPL')
depends=('bluez-libs' 'qt5-base' 'enet' 'ffmpeg' 'libao' 'libevdev' 'mbedtls' 'miniupnpc' 'openal' 'portaudio' 'soundtouch' 'xdg-utils')
2018-08-10 04:38:41 +08:00
makedepends=('cmake' 'qt5-tools' 'git')
2016-09-09 03:15:18 +08:00
optdepends=('pulseaudio: PulseAudio backend')
options=('!emptydirs')
2018-08-10 04:38:41 +08:00
_commit='10d230a512b99aee66f7343481ed13d83557de22'
source=("dolphin-emu::git+https://github.com/dolphin-emu/dolphin.git#commit=${_commit}")
sha256sums=('SKIP')
2016-09-09 03:15:18 +08:00
2018-08-10 04:38:41 +08:00
pkgver() {
cd dolphin-emu
git describe | sed 's/-/.r/; s/-g/./'
}
2016-09-09 03:15:18 +08:00
2018-08-10 04:38:41 +08:00
prepare() {
2016-09-09 03:15:18 +08:00
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
}
build() {
2018-08-10 04:38:41 +08:00
cd build
2016-09-09 03:15:18 +08:00
2018-08-10 04:38:41 +08:00
cmake ../dolphin-emu \
2016-09-09 03:15:18 +08:00
-DCMAKE_INSTALL_PREFIX='/usr' \
2018-08-10 04:38:41 +08:00
-DENABLE_QT2='ON' \
-DENABLE_WX='OFF' \
-DUSE_SHARED_ENET='ON' \
2016-09-09 03:15:18 +08:00
-DDISTRIBUTOR='chakralinux.org'
make
}
package() {
2018-08-10 04:38:41 +08:00
cd build
2016-09-09 03:15:18 +08:00
make DESTDIR="${pkgdir}" install
2018-08-10 04:53:21 +08:00
install -Dm 644 ../dolphin-emu/Data/51-usb-device.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
2016-09-09 03:15:18 +08:00
}