summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeterBB2021-08-25 14:06:33 +0100
committerPeterBB2021-08-25 14:06:33 +0100
commit8901a1ab1f7e6fbd16e696083e7cc0435892a76c (patch)
tree46f4751a9cca7eff940cbe1b290aa4cffb1efdc1
parentda721ae16cac9c4584c46a3611dae8f3211bebfa (diff)
downloadaur-8901a1ab1f7e6fbd16e696083e7cc0435892a76c.tar.gz
New upstream version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD141
2 files changed, 81 insertions, 75 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ea6901e7a85..7f4f4178acd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = c-evo
- pkgdesc = Empire Building Game
- pkgver = 285
+ pkgdesc = Empire Building Game, C-evo: New Horizons
+ pkgver = 400
pkgrel = 1
- url = http://www.c-evo.org/
+ url = https://app.zdechov.net/c-evo
arch = x86_64
license = GPL2
makedepends = fpc
@@ -10,10 +10,9 @@ pkgbase = c-evo
depends = gtk2
optdepends = ffmpeg: Needed for sounds
conflicts = c-evo-bin
- source = c-evo-285.orig.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_285+dfsg.6.orig.tar.xz
- source = c-evo-285.debian.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_285+dfsg.6-3.debian.tar.xz
- sha256sums = a0d3594f1b1d9d5bd540a3275414811b23a42462bfb0eda8ca7ed784e2f57ac7
- sha256sums = 493021b362efca499298c84b8d2edbfcf687ea48206a2b11c2287ec5b2b7ce1b
+ source = c-evo-400.orig.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_400+dfsg.1.orig.tar.xz
+ source = c-evo-400.debian.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_400+dfsg.1-1.debian.tar.xz
+ sha256sums = 380dec7d278778a69b9a39141a9d1fbbb16573df8209f3997debcdbbaf37914a
+ sha256sums = bed29c2ab017bcec95999968deb1ace45b491983b5408f3ad2cae5d44401e5e1
pkgname = c-evo
-
diff --git a/PKGBUILD b/PKGBUILD
index 4e108c219a3..d56b3d37a2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,27 @@
# Maintainer: Peter blackman <peter at pblackman dot plus dot com>
-# Build package from source 285..5.6
-# See https://app.zdechov.net/c-evo
-# See https://svn.zdechov.net/c-evo
+# Build package from OBS source
+# See http://www.c-evo.org/
pkgname=c-evo
-pkgver=285
+pkgver=400
pkgrel=1
-pkgdesc="Empire Building Game"
+pkgdesc="Empire Building Game, C-evo: New Horizons"
arch=('x86_64')
-url="http://www.c-evo.org/"
+url="https://app.zdechov.net/c-evo"
license=('GPL2')
makedepends=('fpc' 'lazarus-gtk2')
depends=('gtk2')
optdepends=('ffmpeg: Needed for sounds')
conflicts=('c-evo-bin')
-source=("$pkgname-$pkgver.orig.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_285+dfsg.6.orig.tar.xz"
- "$pkgname-$pkgver.debian.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_285+dfsg.6-3.debian.tar.xz")
-sha256sums=('a0d3594f1b1d9d5bd540a3275414811b23a42462bfb0eda8ca7ed784e2f57ac7'
- '493021b362efca499298c84b8d2edbfcf687ea48206a2b11c2287ec5b2b7ce1b')
+source=("$pkgname-$pkgver.orig.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_$pkgver+dfsg.1.orig.tar.xz"
+ "$pkgname-$pkgver.debian.tar.xz::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_Testing/c-evo_400+dfsg.1-1.debian.tar.xz")
+sha256sums=('380dec7d278778a69b9a39141a9d1fbbb16573df8209f3997debcdbbaf37914a'
+ 'bed29c2ab017bcec95999968deb1ace45b491983b5408f3ad2cae5d44401e5e1')
prepare() {
cd "${srcdir}"
rm -fr "$pkgname-$pkgver"/debian
- mv -t "$pkgname-$pkgver" debian
+ mv -t "$pkgname-$pkgver" debian
cd "$pkgname-$pkgver"
patch -Np1 < debian/patches/001-directories.patch
patch -Np1 < debian/patches/004-stdai.patch
@@ -30,10 +29,9 @@ prepare() {
patch -Np1 < debian/patches/006-mapsizes.patch
patch -Np1 < debian/patches/008-compiler.patch
patch -Np1 < debian/patches/009-stacktrace.patch
- patch -Np1 < debian/patches/011-splash.patch
+ patch -Np1 < debian/patches/010-splash.patch
patch -Np1 < debian/patches/012-manual.patch
patch -Np1 < debian/patches/014-invalidate.patch
- patch -Np1 < debian/patches/015-wonders.patch
patch -Np1 < debian/patches/016-unsupported.patch
patch -Np1 < debian/patches/017-citywalls.patch
patch -Np1 < debian/patches/018-badwindow.patch
@@ -41,13 +39,34 @@ prepare() {
patch -Np1 < debian/patches/021-sound.patch
patch -Np1 < debian/patches/022-buttons.patch
patch -Np1 < debian/patches/023-stability.patch
- patch -Np1 < debian/patches/024-autosave.patch
-
+ patch -Np1 < debian/patches/024-mapfilename.patch
+ patch -Np1 < debian/patches/025-common.patch
+ patch -Np1 < debian/patches/026-help.patch
+
# Arch does not use a 'games' folder
sed -i "s|share/games|share|" debian/extras/$pkgname-launch-gtk2
sed -i "s|/usr/games|/usr/bin|" debian/extras/$pkgname-launch-gtk2
sed -i "s|share/games|share|" debian/extras/$pkgname-launch-qt5
sed -i "s|/usr/games|/usr/bin|" debian/extras/$pkgname-launch-qt5
+
+ # Corruption.png needs to be upper case
+ mv Help/Corruption.png Help/CORRUPTION.png
+
+ # naptid.png wrong place and wrong case
+ mv Localization/zh-Hans/Help/naptid.png Help/NAPTID.png
+
+ # Remove readme files (credits moved to copyright file)
+ rm -f Maps/readme.txt
+ rm -f Graphics/*.credits.txt
+ rm -f Localization/cs/readme!!!.txt
+ rm -f Localization/ru/ReadMe.txt
+ rm -f Localization/zh-Hans/ReadMe.txt
+ rm -f Localization/zh-Hant/ReadMe.txt
+ rm -f Localization/zh-Hant/Help/naptid.png
+
+ # Remove most of the ocean only maps (now we have the map generator)
+ rm -f Maps/0*.png
+ rm -f Maps/0*.cevo\ map
}
@@ -59,8 +78,16 @@ build() {
mkdir "$srcdir/config"
# clean
+ rm -f *.cfg
+ rm -f AI/StdAI/*.cfg
+ rm -f Packages/CevoComponents/*.cfg
+ rm -f Packages/Common/*.cfg
rm -fr lib
rm -fr Packages/CevoComponents/lib
+ rm -fr Packages/Common/lib
+ rm -fr AI/StdAI/lib
+ rm -f Switches.inc
+ rm -f AI/StdAI/Switches.inc
rm -fr AI/StdAI/lib
rm -f AI/StdAI/*.so
rm -f AI/StdAI/*.o
@@ -72,7 +99,6 @@ build() {
rm -f "$pkgname-gtk3 $pkgname-gtk3.dbg"
rm -f "$pkgname-qt5 $pkgname-qt5.dbg"
rm -f "$pkgname-fpgui $pkgname-fpgui.dbg"
- rm -f fpc.cfg
# Build AI module
cp debian/extras/Release.cfg AI/StdAI/fpc.cfg
@@ -83,8 +109,10 @@ build() {
# Build GTK program
cd ../../
cp debian/extras/Release.cfg fpc.cfg
+ cp debian/extras/Release.cfg Packages/CevoComponents/fpc.cfg
+ cp debian/extras/Release.cfg Packages/Common/fpc.cfg
- # currently cannot build with -pie as the RTL is not built with pie
+ # currently cannot build with -pie as the RTL is not built with pie
sed -i '/-k-pie/d' fpc.cfg
cp debian/extras/Switches.inc Switches.inc
@@ -99,44 +127,24 @@ build() {
package() {
cd "$pkgname-$pkgver"
-
- mv debian/README.debian debian/README.arch
-
- # Corruption.png needs to be upper case
- # naptid.png wrong place and wrong case
- # Remove readme files (credits moved to copyright file)
- # Remove NewZealand saved game (Won't load in this version)
- # Remove most of the ocean only maps (now we have the map generator)
- mv Help/Corruption.png Help/CORRUPTION.png
- mv Localization/zh-Hans/Help/naptid.png Help/NAPTID.png
- rm Maps/readme.txt
- rm Graphics/*.credits.txt
- rm Localization/cs/readme!!!.txt
- rm Localization/ru/ReadMe.txt
- rm Localization/zh-Hans/ReadMe.txt
- rm Localization/zh-Hant/ReadMe.txt
- rm Localization/zh-Hant/Help/naptid.png
- rm Maps/MyGameNewZealand.cevo
- rm Maps/0*.png
- rm Maps/0*.cevo\ map
install -Dm 644 "debian/extras/$pkgname-gtk2.desktop" -t "$pkgdir/usr/share/applications"
install -Dm 644 "debian/extras/$pkgname-manual-gtk2.desktop" -t "$pkgdir/usr/share/applications"
install -Dm 644 "debian/extras/$pkgname.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
-
+
install -Dm 755 "$pkgname-gtk2" -t "$pkgdir/usr/bin"
install -Dm 755 "debian/extras/$pkgname-launch-gtk2" -t "$pkgdir/usr/bin"
install -Dm 644 AI/StdAI/StdAI.png -t "$pkgdir/usr/share/$pkgname/AI/StdAI"
install -Dm 644 AI/StdAI/StdAI.ai.txt -t "$pkgdir/usr/share/$pkgname/AI/StdAI"
install -Dm 755 AI/StdAI/libstdai.so -t "$pkgdir/usr/lib/$pkgname"
-
+
ln -s "/usr/lib/$pkgname/libstdai.so" "$pkgdir/usr/share/$pkgname/AI/StdAI/libstdai.so"
-
+
install -Dm 644 readme.txt -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 debian/README.source -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 debian/README.arch -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 debian/copyright -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 debian/changelog -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 debian/README.source -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 debian/README.linux -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 debian/copyright -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 debian/changelog -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 debian/extras/techchart.png -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 debian/extras/Tutorial.html -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 debian/extras/C-evo-HOWTO.html -t "$pkgdir/usr/share/doc/$pkgname"
@@ -145,15 +153,15 @@ package() {
install -Dm 644 debian/extras/c-evo-launch-gtk2.6 -t "$pkgdir/usr/share/man/man6"
install -Dm 644 debian/extras/c-evo-gtk2.6 -t "$pkgdir/usr/share/man/man6"
install -Dm 644 debian/c-evo-gtk2.metainfo.xml -t "$pkgdir/usr/share/metainfo"
-
- install -Dm 644 Language.txt -t "$pkgdir/usr/share/$pkgname"
+
+ install -Dm 644 Language.txt -t "$pkgdir/usr/share/$pkgname"
install -Dm 644 Language2.txt -t "$pkgdir/usr/share/$pkgname"
install -Dm 644 Fonts.txt -t "$pkgdir/usr/share/$pkgname"
install -Dm 644 Graphics/* -t "$pkgdir/usr/share/$pkgname/Graphics"
install -Dm 644 Help/* -t "$pkgdir/usr/share/$pkgname/Help"
install -Dm 644 Maps/* -t "$pkgdir/usr/share/$pkgname/Maps"
- install -Dm 644 debian/extras/maps/* -t "$pkgdir/usr/share/$pkgname/Maps"
+ install -Dm 644 debian/extras/maps/* -t "$pkgdir/usr/share/$pkgname/Maps"
install -Dm 644 Saved/* -t "$pkgdir/usr/share/$pkgname/Saved"
install -Dm 644 Sounds/* -t "$pkgdir/usr/share/$pkgname/Sounds"
install -Dm 644 Tribes/* -t "$pkgdir/usr/share/$pkgname/Tribes"
@@ -161,37 +169,36 @@ package() {
install -Dm 644 debian/extras/Textures/*.jpg -t "$pkgdir/usr/share/$pkgname/Graphics"
install -Dm 644 debian/extras/Sounds/*.mp3 -t "$pkgdir/usr/share/$pkgname/Sounds"
- install -Dm 644 Localization/cs/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/cs/Help"
- install -Dm 644 Localization/cs/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/cs/Tribes"
+ install -Dm 644 Localization/cs/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/cs/Help"
+ install -Dm 644 Localization/cs/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/cs/Tribes"
install -Dm 644 Localization/cs/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/cs"
- install -Dm 644 Localization/de/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/de/Help"
- install -Dm 644 Localization/de/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/de/Tribes"
+ install -Dm 644 Localization/de/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/de/Help"
+ install -Dm 644 Localization/de/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/de/Tribes"
install -Dm 644 Localization/de/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/de"
install -Dm 644 debian/extras/de/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/de"
-
- install -Dm 644 debian/extras/fr/help.txt -t "$pkgdir/usr/share/$pkgname/Localization/fr/Help"
- install -Dm 644 debian/extras/fr/StdUnits.txt -t "$pkgdir/usr/share/$pkgname/Localization/fr/Tribes"
+
+ install -Dm 644 debian/extras/fr/help.txt -t "$pkgdir/usr/share/$pkgname/Localization/fr/Help"
+ install -Dm 644 debian/extras/fr/StdUnits.txt -t "$pkgdir/usr/share/$pkgname/Localization/fr/Tribes"
install -Dm 644 debian/extras/fr/Language*.txt -t "$pkgdir/usr/share/$pkgname/Localization/fr"
-
- install -Dm 644 Localization/it/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/it/Help"
- install -Dm 644 Localization/it/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/it/Tribes"
- install -Dm 644 Localization/it/AI/* -t "$pkgdir/usr/share/$pkgname/Localization/it/AI"
+
+ install -Dm 644 Localization/it/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/it/Help"
+ install -Dm 644 Localization/it/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/it/Tribes"
+ install -Dm 644 Localization/it/AI/* -t "$pkgdir/usr/share/$pkgname/Localization/it/AI"
install -Dm 644 Localization/it/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/it"
- install -Dm 644 Localization/ru/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/ru/Help"
- install -Dm 644 Localization/ru/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/ru/Tribes"
+ install -Dm 644 Localization/ru/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/ru/Help"
+ install -Dm 644 Localization/ru/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/ru/Tribes"
install -Dm 644 Localization/ru/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/ru"
install -Dm 644 debian/extras/ru/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/ru"
- install -Dm 644 Localization/zh-Hans/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Help"
- install -Dm 644 Localization/zh-Hans/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Tribes"
- install -Dm 644 Localization/zh-Hans/Maps/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Maps"
+ install -Dm 644 Localization/zh-Hans/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Help"
+ install -Dm 644 Localization/zh-Hans/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Tribes"
+ install -Dm 644 Localization/zh-Hans/Maps/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans/Maps"
install -Dm 644 Localization/zh-Hans/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hans"
- install -Dm 644 Localization/zh-Hant/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Help"
- install -Dm 644 Localization/zh-Hant/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Tribes"
- install -Dm 644 Localization/zh-Hant/Maps/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Maps"
+ install -Dm 644 Localization/zh-Hant/Help/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Help"
+ install -Dm 644 Localization/zh-Hant/Tribes/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Tribes"
+ install -Dm 644 Localization/zh-Hant/Maps/* -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant/Maps"
install -Dm 644 Localization/zh-Hant/*.txt -t "$pkgdir/usr/share/$pkgname/Localization/zh-Hant"
}
-