summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7faa4b8c2292f954a68872591259b799ed6e186 (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
# Contributor: Navet56 <evandib@gmail.com> 
# Maintainer: Navet56 <evandib@gmail.com> 
# Maintainer : Anarchiste

pkgname=opmon
pkgver=0.16
pkgrel=1
license=('GPL')
arch=('x86_64')
pkgdesc="A open source RPG monster fighting game"
url="http://opmon-game.ga"
depends=('sfml' 'gcc' 'libstdc++5' 'smpeg')
makedepends=('cmake')
conflicts=('opmon-git')
source=("git+git://github.com/OpMonTeam/OpMon.git#tag=alpha-v${pkgver}")
md5sums=('SKIP')

build() {
cd $srcdir/OpMon

cmake  . -DCMAKE_BUILD_TYPE=Release || return 1

make || return 1

}

package()
{

mkdir "${pkgdir}/usr"
mkdir "${pkgdir}/usr/bin"
mkdir "${pkgdir}/usr/local"
mkdir "${pkgdir}/usr/share"
mkdir "${pkgdir}/usr/local/share"
mkdir "${pkgdir}/usr/local/share/OpMon"
mkdir "${pkgdir}/usr/share/applications"

cp ${srcdir}/OpMon/bin/Release/opmon ${pkgdir}/usr/bin/opmon
cp -r ${srcdir}/OpMon/data/* ${pkgdir}/usr/local/share/OpMon
cp ${srcdir}/OpMon/data/OPMon.desktop ${pkgdir}/usr/share/applications/

cd "${srcdir}/OpMon"

}