summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 229e4354789087f11474b4a2173a2107be5c7e66 (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
# Maintainer: Ainola
# Contributor: Ner0
# Contributor: quantax
# Contributor: xyproto

pkgname=ags
pkgver=3.4.1.14
pkgrel=2
pkgdesc='A development tool that is primarily used to create graphical adventure games'
arch=('x86_64')
url='https://github.com/adventuregamestudio/ags'
license=('Artistic2.0')
depends=('allegro4' 'dumb-a4' 'libogg' 'libtheora' 'libvorbis')
makedepends=('wxgtk')
optdepends=('wine: for installing and configuring the game')
source=("https://github.com/adventuregamestudio/ags/archive/v.${pkgver}.tar.gz"
        'https://github.com/adventuregamestudio/ags/commit/44d954493bb5f3e95a11a4eddbb62bd6110b1b63.patch')
sha256sums=('4ca76b919689c68a9fda4bd56bfb63268ab5326a539ce4d681ac4ed6a908b51c'
            '6b7092e5794ae532f79c5c6ad5f5761c217b3ec874da43537152fb8e60b20019')

prepare() {
  mv "ags-v.$pkgver" "$pkgname-$pkgver"

  # Copious use of auto_ptr spams the compilation output. Until they're
  # replaced, just suppress the message.
  sed -i 's/-Wfatal-errors/-Wfatal-errors\ -Wno-deprecated-declarations/' \
    "$pkgname-$pkgver/Engine/Makefile-defs.linux"

  # avoid conflicts with glibc functions with the same names
  patch -d "$pkgname-$pkgver" -p1 < ../44d954493bb5f3e95a11a4eddbb62bd6110b1b63.patch
}

build() {
  cd "ags-v.${pkgver}"
  make -C Engine
}

package() {
  install -Dm755 "ags-v.${pkgver}/Engine/ags" \
                 "$pkgdir/usr/bin/ags"
}

# vim: ts=2 sw=2 et