summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8b7daaeb5d57d3ea54bad844a390102f46a17dc (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
# Maintainer: Ainola <ainola@archlinux.org>
# Contributor: Ner0
# Contributor: quantax
# Contributor: xyproto

pkgname=ags
pkgver=3.4.3.1
pkgrel=1
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=('dumb-a4' 'libtheora' 'freetype2')
makedepends=('wxgtk')
source=("$pkgname-$pkgver.tar.gz::https://github.com/adventuregamestudio/ags/archive/v.$pkgver.tar.gz"
        'https://github.com/adventuregamestudio/ags/commit/44d954493bb5f3e95a11a4eddbb62bd6110b1b63.patch')
sha256sums=('01479c2e68dcf40f0a5283ee469acf399834c0734b979bc729d8274c9ca0273f'
            '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"
}

build() {
    cd "$pkgname-$pkgver"
    make -C Engine
}

package() {
    install -Dm755 "$pkgname-$pkgver/Engine/ags" -t "$pkgdir/usr/bin/"
}