summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0814a114f5bb49d0fb392c30a5f1a523bb44b08 (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Ainola
# Contributor: Ner0
# Contributor: quantax

pkgname=ags-git
pkgver=3.3.4.2.34.g6edac71
pkgrel=2
pkgdesc="Adventure Game Studio, a development tool that is primarily used to create graphical adventure games"
arch=('i686' 'x86_64')
url="https://github.com/adventuregamestudio/ags"
license=('Artistic2.0')
depends=('allegro' 'dumb' 'libogg' 'libtheora' 'libvorbis')
makedepends=('git' 'wxgtk')
optdepends=('wine: for installing and configuring the game')
conflicts=('ags')
install=ags.install
source=('git://github.com/adventuregamestudio/ags.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/ags"
  git describe --tags | sed s'/v\.//;s/-/./g'
}

#prepare() {
#  cd "$srcdir/ags"
#  sed -i 's/-Wfatal-errors\ //' Engine/Makefile-defs.linux
#  git submodule update --init
#}

build() {
  cd "$srcdir/ags"
  make -C Engine
}

package() {
  install -Dm755 "$srcdir/ags/Engine/ags" "$pkgdir/usr/bin/ags"
  install -Dm644 "$srcdir/ags/License.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}