summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edf731a8ddbb9bae0173215c4001f45794bedad3 (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
#Maintainer: Doommsatic <keniscoolu@gmail.com>
pkgname=libretro-easyrpg-player
pkgver=0.8
pkgrel=1
pkgdesc="FLOSS RPG Maker 2000/2003 and EasyRPG games interpreter (libretro core)"
arch=('x86_64')
url="https://easyrpg.org/"
license=('GPL3')
depends=("liblcf>=${pkgver:0:8}" 'pixman' 'freetype2' 'libvorbis' 'mpg123' 'libsndfile' 'speexdsp' 'wildmidi' 'libretro-core-info' )
makedepends=('git' 'cmake')
_commit=f8e41f43b619413f95847536412b56f85307d378
source=($pkgname::git+https://github.com/EasyRPG/Player.git#commit=${_commit})
sha256sums=(SKIP)

prepare(){
	cd $pkgname
	git submodule init
	git submodule update
	cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DPLAYER_TARGET_PLATFORM=libretro -DBUILD_SHARED_LIBS=ON
}

build(){
	cd $pkgname
	cmake --build .
}

package(){
	cd $pkgname
	install -Dm 644 easyrpg_libretro.so -t "$pkgdir"/usr/lib/libretro/
}