hasufell-repository/packages/games-rpg/valyriatear/valyriatear-scm.exheres-0

60 lines
1.4 KiB
Bash

# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
SCM_REPOSITORY="git://github.com/ValyriaTear/ValyriaTear.git"
SCM_luabind_REPOSITORY="git://github.com/ValyriaTear/luabind"
SCM_SECONDARY_REPOSITORIES="luabind"
SCM_EXTERNAL_REFS="src/luabind:luabind"
SCM_CHECKOUT_TO=${PN}
MY_PNV=ValyriaTear-${PV}
require gtk-icon-cache freedesktop-desktop
require scm-git
require cmake [ api=2 ]
SUMMARY="A free 2D J-RPG based on the Hero of Allacrost engine"
HOMEPAGE="http://valyriatear.blogspot.de/
https://github.com/Bertram25/ValyriaTear"
DOWNLOADS=""
LICENCES="GPL-2 GPL-3 CCPL-Attribution-ShareAlike-3.0 CCPL-Attribution-3.0 CC0 OFL-1.1"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
build:
dev-libs/boost
sys-devel/gettext
build+run:
dev-lang/lua:5.1
media-libs/libpng:=[>=1.5]
media-libs/libvorbis
media-libs/openal
media-libs/SDL:2[X]
media-libs/SDL_image:2
media-libs/SDL_ttf:2
x11-dri/glu
x11-dri/mesa
x11-libs/libX11
"
CMAKE_SRC_CONFIGURE_PARAMS=(
-DCMAKE_INSTALL_PREFIX="/usr"
-DPKG_BINDIR="/usr/$(exhost --target)/bin"
-DPKG_DATADIR="/usr/share/${PN}"
-DUSE_PCH_COMPILATION=OFF
)
pkg_postinst() {
gtk-icon-cache_pkg_postinst
freedesktop-desktop_pkg_postinst
}
pkg_postrm() {
gtk-icon-cache_pkg_postrm
freedesktop-desktop_pkg_postrm
}