Created
September 8, 2017 16:18
-
-
Save nisseblink/8daa9cb6e9a09ebc881a5cc878de3714 to your computer and use it in GitHub Desktop.
Added submodule to PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sandy Carter <bwrsandman@gmail.com> | |
# Contributor: Raziel23 <venom23 at runbox dot com> | |
pkgname=vcmi-git | |
pkgver=r6730.1b9daecd | |
pkgrel=1 | |
pkgdesc="Open-source engine for Heroes of Might and Magic III" | |
arch=('i686' 'x86_64') | |
url="http://vcmi.eu" | |
license=('GPL2') | |
depends=('boost-libs' 'ffmpeg' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'qt5-base' 'libxkbcommon-x11' | |
'desktop-file-utils' 'gtk-update-icon-cache' 'hicolor-icon-theme') | |
makedepends=('boost' 'cmake' 'git') | |
optdepends=('innoextract: required by vcmibuilder' | |
'unshield: required by vcmibuilder' | |
'unzip: required by vcmibuilder') | |
provides=('vcmi') | |
conflicts=('vcmi') | |
install="$pkgname.install" | |
source=("$pkgname::git+https://github.com/vcmi/vcmi.git#branch=develop" | |
"fuzzylite::git+https://github.com/fuzzylite/fuzzylite.git#branch=release") | |
md5sums=('SKIP' 'SKIP') | |
pkgver() { | |
cd "$pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
cd "${pkgname}" | |
git submodule init | |
git config submodule.fuzzylite.url "${srcdir}/AI/FuzzyLite" | |
git submodule update | |
} | |
build() { | |
cd "${srcdir}/${pkgname}" | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX='/usr' \ | |
-DCMAKE_INSTALL_LIBDIR='lib' \ | |
-DCMAKE_SKIP_RPATH='FALSE' \ | |
-DENABLE_TEST=OFF \ | |
-DCMAKE_BUILD_TYPE='RelWithDebInfo' | |
make | |
} | |
package() { | |
cd "${srcdir}/${pkgname}" | |
make DESTDIR="$pkgdir" install | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment