From aaf8f8c1e73ddf4b083ed009950ef1772b8ce71e Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 4 Aug 2022 01:20:18 +0200 Subject: [PATCH 1/2] New package: colobot-data-0.2.0 --- srcpkgs/colobot-data/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/colobot-data/template diff --git a/srcpkgs/colobot-data/template b/srcpkgs/colobot-data/template new file mode 100644 index 000000000000..343deef501b1 --- /dev/null +++ b/srcpkgs/colobot-data/template @@ -0,0 +1,20 @@ +# Template file for 'colobot-data' +pkgname=colobot-data +version=0.2.0 +revision=1 +create_wrksrc=yes +build_wrksrc="colobot-data-colobot-gold-${version}-alpha" +build_style=cmake +hostmakedepends="python3" +short_desc="Real-time strategy game, where you can program your units (data files)" +maintainer="Marcin Puc " +license="GPL-3.0-or-later" +homepage="https://github.com/colobot/colobot-data" +distfiles="https://github.com/colobot/colobot-data/archive/colobot-gold-${version}-alpha.tar.gz + https://colobot.info/files/music/colobot-music_ogg_${version}-alpha.tar.gz" +checksum="4d6932f73830fa4ee9f37f6a18254c306fa804f74a2d78e9db7cb866a3a46a8b + 55e89d244f1f63e2467ef71253ca881ee31279f02aac9ac4706ef26c466306e9" + +post_extract() { + mv ${wrksrc}/*.ogg ${wrksrc}/LICENSE.txt ${wrksrc}/${build_wrksrc}/music/ +} From 005efcda503f23043ccb14b65ce08a4006837e42 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 4 Aug 2022 01:21:24 +0200 Subject: [PATCH 2/2] New package: colobot-0.2.0 --- .../patches/xmlstarlet-binary-name.patch | 13 +++++++++++++ srcpkgs/colobot/template | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/colobot/patches/xmlstarlet-binary-name.patch create mode 100644 srcpkgs/colobot/template diff --git a/srcpkgs/colobot/patches/xmlstarlet-binary-name.patch b/srcpkgs/colobot/patches/xmlstarlet-binary-name.patch new file mode 100644 index 000000000000..fb8a826190c8 --- /dev/null +++ b/srcpkgs/colobot/patches/xmlstarlet-binary-name.patch @@ -0,0 +1,13 @@ +diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt +index 2ee308c..8dc2d03 100644 +--- a/desktop/CMakeLists.txt ++++ b/desktop/CMakeLists.txt +@@ -8,7 +8,7 @@ if(NOT RSVG_CONVERT) + message(WARNING "rsvg-convert not found; desktop icons will not be generated") + endif() + +-find_program(XMLSTARLET xmlstarlet) ++find_program(XMLSTARLET xml) + if(NOT XMLSTARLET) + message(WARNING "xmlstarlet not found; desktop icons will not be generated") + endif() diff --git a/srcpkgs/colobot/template b/srcpkgs/colobot/template new file mode 100644 index 000000000000..1b415dd2cfad --- /dev/null +++ b/srcpkgs/colobot/template @@ -0,0 +1,19 @@ +# Template file for 'colobot' +pkgname=colobot +# needs to be kept in sync with colobot-data (provides game assets) +version=0.2.0 +revision=1 +wrksrc="colobot-colobot-gold-${version}-alpha" +build_style=cmake +configure_args="-DCOLOBOT_INSTALL_BIN_DIR=/usr/bin -DOpenGL_GL_PREFERENCE=GLVND" +hostmakedepends="gettext librsvg-utils perl po4a xmlstarlet" +makedepends="boost-devel glew-devel libogg-devel libopenal-devel + libsndfile-devel libvorbis-devel physfs-devel + SDL2-devel SDL2_image-devel SDL2_ttf-devel" +depends="colobot-data>=${version}" +short_desc="Real-time strategy game, where you can program your units" +maintainer="Marcin Puc " +license="GPL-3.0-or-later" +homepage="https://colobot.info/" +distfiles="https://github.com/colobot/colobot/archive/colobot-gold-${version}-alpha.tar.gz" +checksum="633ce4ec9b54c657942453e769a2339befb2d0afff8b8b3589a73d005e097ab6"