From 636632323a7ba77044a83722a48f2a725e531fe6 Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Sat, 7 Apr 2018 23:42:56 +0300 Subject: [PATCH] xmoto: split data package [ci skip] --- srcpkgs/xmoto-data | 1 + srcpkgs/xmoto/template | 31 ++++++++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/xmoto-data diff --git a/srcpkgs/xmoto-data b/srcpkgs/xmoto-data new file mode 120000 index 0000000000..39d7d88cdf --- /dev/null +++ b/srcpkgs/xmoto-data @@ -0,0 +1 @@ +xmoto \ No newline at end of file diff --git a/srcpkgs/xmoto/template b/srcpkgs/xmoto/template index 3d00697b95..319d306619 100644 --- a/srcpkgs/xmoto/template +++ b/srcpkgs/xmoto/template @@ -1,25 +1,26 @@ # Template build file for 'xmoto' pkgname=xmoto version=0.5.11 -revision=8 +revision=9 build_style=gnu-configure -short_desc="2D motocross platform game" -maintainer="Enno Boland " -license="GPL-2" +configure_args="--disable-sdltest CPPFLAGS=-DdDOUBLE" +hostmakedepends="automake libtool gettext-devel intltool desktop-file-utils" makedepends="sqlite-devel zlib-devel libjpeg-turbo-devel libpng-devel libxml2-devel libxdg-basedir-devel glu-devel SDL-devel SDL_mixer-devel SDL_net-devel SDL_ttf-devel lua52-devel libcurl-devel libode-devel bzip2-devel" -hostmakedepends="automake libtool gettext-devel intltool SDL-devel libxml2-devel desktop-file-utils" +depends="${pkgname}-data" +short_desc="2D motocross platform game" +maintainer="Enno Boland " +license="GPL-2.0-or-later" homepage="http://xmoto.tuxfamily.org/" -distfiles="http://download.tuxfamily.org/xmoto/xmoto/$version/$pkgname-$version-src.tar.gz" +distfiles="http://download.tuxfamily.org/xmoto/xmoto/$version/xmoto-$version-src.tar.gz" checksum=a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2 -configure_args="--disable-sdltest CPPFLAGS=-DdDOUBLE" -CXXFLAGS="-Wno-deprecated" -LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib" -if [ "$CROSS_BUILD" ]; then +if [ -n "$CROSS_BUILD" ]; then # configure can't test this when cross compiling export ac_cv_lib_GLU_gluBuild2DMipmaps=yes + LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib" + hostmakedepends+=" SDL_mixer-devel libxml2-devel" fi pre_configure() { @@ -33,5 +34,13 @@ pre_configure() { post_install() { desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \ --dir="${DESTDIR}/usr/share/applications" extra/xmoto.desktop - vinstall "extra/xmoto.xpm" 644 "${pkgdir}/usr/share/pixmaps" + vinstall extra/xmoto.xpm 644 usr/share/pixmaps +} + +xmoto-data_package() { + short_desc+=" - data files" + noarch=yes + pkg_install() { + vmove usr/share/xmoto + } }