summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeterBB2021-02-21 17:36:27 +0000
committerPeterBB2021-02-21 17:36:27 +0000
commita610f7fb87c50142c9d39b5100c7fc54875d4047 (patch)
tree3c48b7b8d4b713d68c00fc8e4515ac41f53fdf19
downloadaur-a610f7fb87c50142c9d39b5100c7fc54875d4047.tar.gz
initial version
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD65
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f35b437798e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = c-evo-bin
+ pkgdesc = Empire Building Game
+ pkgver = 285.6.3
+ pkgrel = 1
+ url = http://www.c-evo.org/
+ arch = x86_64
+ license = GPL2
+ depends = gtk2
+ optdepends = ffmpeg: Needed for sounds
+ conflicts = c-evo
+ noextract = c-evo-bin-285.6.3.data.deb
+ noextract = c-evo-bin-285.6.3.stdai.deb
+ noextract = c-evo-bin-285.6.3.gtk2.deb
+ source = c-evo-bin-285.6.3.data.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/all/c-evo-data_285+dfsg.6-3_all.deb
+ source = c-evo-bin-285.6.3.stdai.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/amd64/c-evo-stdai_285+dfsg.6-3_amd64.deb
+ source = c-evo-bin-285.6.3.gtk2.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/amd64/c-evo-gtk2_285+dfsg.6-3_amd64.deb
+ sha256sums = afc232b8e80c94ef2c4986ce391f7bdd0c07b4f2a764b68e84491e0fb63add23
+ sha256sums = bbf143d72286bd98a7f9c966e9874638fd9fc3f87666d4533f428b197dcd8839
+ sha256sums = 196c340b63e19907fc8c7818b8556955d11b4bb08ebec79b5e8dfbaeca74ba27
+
+pkgname = c-evo-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74252f9717a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Peter blackman <peter at pblackman dot plus dot com>
+# Make Arch package using OBS binaries
+# See https://app.zdechov.net/c-evo
+# See https://svn.zdechov.net/c-evo
+
+pkgname=c-evo-bin
+pkgver=285.6.3
+pkgrel=1
+pkgdesc="Empire Building Game"
+arch=('x86_64')
+url="http://www.c-evo.org/"
+license=('GPL2')
+depends=('gtk2')
+optdepends=('ffmpeg: Needed for sounds')
+conflicts=('c-evo')
+source=("$pkgname-$pkgver.data.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/all/c-evo-data_285+dfsg.6-3_all.deb"
+ "$pkgname-$pkgver.stdai.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/amd64/c-evo-stdai_285+dfsg.6-3_amd64.deb"
+ "$pkgname-$pkgver.gtk2.deb::https://download.opensuse.org/repositories/home:/PeterBBB/Debian_10/amd64/c-evo-gtk2_285+dfsg.6-3_amd64.deb")
+sha256sums=('afc232b8e80c94ef2c4986ce391f7bdd0c07b4f2a764b68e84491e0fb63add23'
+ 'bbf143d72286bd98a7f9c966e9874638fd9fc3f87666d4533f428b197dcd8839'
+ '196c340b63e19907fc8c7818b8556955d11b4bb08ebec79b5e8dfbaeca74ba27')
+
+noextract=("$pkgname-$pkgver.data.deb"
+ "$pkgname-$pkgver.stdai.deb"
+ "$pkgname-$pkgver.gtk2.deb")
+
+prepare() {
+ cd "${srcdir}"
+ ar -x "$pkgname-$pkgver.data.deb" data.tar.xz
+ mv data.tar.xz c-data.tar.xz
+ ar -x "$pkgname-$pkgver.stdai.deb" data.tar.xz
+ mv data.tar.xz c-stdai.tar.xz
+ ar -x "$pkgname-$pkgver.gtk2.deb" data.tar.xz
+ mv data.tar.xz c-gtk2.tar.xz
+
+ tar -xf c-stdai.tar.xz
+ tar -xf c-data.tar.xz
+ tar -xf c-gtk2.tar.xz
+
+ # Remove Debian stuff not needed here
+ rm -fr usr/share/doc-base
+ rm -fr usr/share/lintian
+ rm -fr usr/share/doc/c-evo-gtk2
+ rm -fr usr/share/doc/c-evo-stdai
+
+ # Arch does not use a games folder
+ rm -fr usr/bin
+ mv -T usr/games usr/bin
+ rm -fr usr/share/c-evo
+ mkdir usr/share/c-evo
+ mv usr/share/games/c-evo/* usr/share/c-evo
+ rm -r usr/share/games
+ rm usr/share/c-evo/AI/StdAI/libstdai.so
+ ln -srv usr/lib/c-evo/libstdai.so usr/share/c-evo/AI/StdAI/libstdai.so
+
+ sed -i "s|share/games|share|" usr/bin/c-evo-launch-gtk2
+ sed -i "s|/usr/games|/usr/bin|" usr/bin/c-evo-launch-gtk2
+ }
+
+
+package() {
+ cd $srcdir
+ cp -Rf ./usr $pkgdir
+}
+