Skip to content

Instantly share code, notes, and snippets.

@BlackLotus
Last active June 14, 2018 15:03
Show Gist options
  • Save BlackLotus/13d002488fbaf4ff0c654c26d673f8a2 to your computer and use it in GitHub Desktop.
Save BlackLotus/13d002488fbaf4ff0c654c26d673f8a2 to your computer and use it in GitHub Desktop.
# Maintainer : Michael DeGuzis <mdeguzis@gmail.com>
pkgname=play-emu-git
_gitname=Play-Build
pkgver=r3.462d986
pkgrel=5
pkgdesc="Play! is an experimental Playstation 2 emulator."
arch=('i686' 'x86_64')
url="https://github.com/jpd002"
license=('GPL')
makedepends=('git')
depends=('cmake' 'glew' 'mysql++' 'openal'
'qt5-base' 'zlib')
source=('Play-Build::git+https://github.com/jpd002/Play-Build.git'
'play-emu.desktop'
'play.png')
md5sums=('SKIP'
'59e7114de681f2f96730697cde4f4595'
'2c6db31d8119437e5af6fa95b4c1fb8f')
pkgver() {
cd $_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare () {
cd $_gitname
git submodule update -q --init --recursive
git submodule foreach "git checkout -q master"
cd Dependencies
git submodule update --init
}
build() {
cd $_gitname/Play/
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
}
package() {
install -d $pkgdir/usr/bin
install -d $pkgdir/usr/share/pixmaps
install -d $pkgdir/usr/share/applications
install -m755 $srcdir/$_gitname/Play/build/Source/ui_unix/Play $pkgdir/usr/bin/play-emu
install -m755 play.png $pkgdir/usr/share/pixmaps/play.png
install -m755 play-emu.desktop $pkgdir/usr/share/applications/play-emu.desktop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment