diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 32 insertions, 10 deletions
@@ -1,26 +1,28 @@ # Maintainer: Dan Beste <dan.ray.beste@gmail.com> -# Previously: -# Maintainer: Frederic Bezies <fredbezies at gmail dot com> - +# Contributor: Frederic Bezies <fredbezies at gmail dot com> # Contributor: Ainola # Contributor: Ner0 # Contributor: quantax pkgname='ags-git' _pkgname='ags' -pkgver=3.4.1.3.r7.gb4199b73 +pkgver=3.4.1.4.r40.g8e66a52d pkgrel=1 -pkgdesc="Adventure Game Studio, a development tool that is primarily used to create graphical adventure games" +pkgdesc='Adventure Game Studio, a development tool that is primarily used to create graphical adventure games' arch=('i686' 'x86_64') url='http://www.adventuregamestudio.co.uk/' license=('custom: Artistic 2.0') -depends=('allegro' 'dumb' 'libogg' 'libtheora' 'libvorbis') +depends=('allegro' 'dumb' 'freetype2' 'libogg' 'libtheora' 'libvorbis') makedepends=('git') optdepends=('wine: For non-native games') conflicts=("${_pkgname}") provides=("${_pkgname}") -source=('git+https://github.com/adventuregamestudio/ags.git') -sha256sums=('SKIP') +source=( + 'git+https://github.com/adventuregamestudio/ags.git' + 'agslua::git+https://github.com/duncanc/Lua-for-AGS.git' + 'git+https://github.com/google/googletest.git' +) +sha256sums=('SKIP' 'SKIP' 'SKIP') pkgver() { cd "${_pkgname}" @@ -30,6 +32,26 @@ pkgver() { | sed 's/v.//' } +prepare() { + cd "${_pkgname}" + + local submodules=( + 'agslua' + 'googletest' + ) + + for module in "${submodules[@]}"; do + local submodule + submodule=$(grep -F 'path = ' .gitmodules \ + | grep -F "${module}" \ + | awk '{print $3}') + + git submodule init "${submodule}" + git config "submodule.${submodule}.url" "${srcdir}/${module}" + git submodule update "${submodule}" + done +} + build() { cd "${_pkgname}" @@ -39,11 +61,11 @@ build() { package() { cd "${_pkgname}" - install -Dm 755 \ + install -D -m 755 \ "Engine/${_pkgname}" \ "${pkgdir}/usr/bin/${_pkgname}" - install -Dm 644 \ + install -D -m 644 \ "License.txt" \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |