blob: c87e578009c567e6753674f77dda88280fc3d0aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Peter Blackman <peter at pblackman dot plus dot com>
# 23-Feb-2025
pkgname=c-evo-dh
pkgver=2.4
pkgrel=1
pkgdesc="C-evo: Distant Horizon, Empire Building Game"
arch=('x86_64' 'aarch64')
url="https://git.code.sf.net/p/c-evo-eh/code"
license=('GPL-2.0-or-later' 'CC-BY-3.0')
makedepends=('git' 'fpc' 'lazarus-gtk2')
depends=('gtk2' 'gdk-pixbuf2' 'glib2' 'glibc' 'pango' 'libx11' 'at-spi2-core' 'cairo' 'bash' 'hicolor-icon-theme')
optdepends=('sox: Needed for sounds if ffmpeg not installed')
source=("$pkgname-$pkgver"::git+$url#tag=$pkgver)
#source=("$pkgname-$pkgver".orig.tar.xz)
sha256sums=('35424239af2eb178f18568314431f5e05be1eff36b24568af38ed7fac8151cea')
# Arch does not use games or libexec folders
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i "s|share/games|share|" Linux/c-evo-launch-gtk2
sed -i "s|/usr/games|/usr/bin|" Linux/c-evo-launch-gtk2
sed -i "s|/usr/libexec|/usr/lib|" Linux/c-evo-launch-gtk2
# currently cannot build with -pie as the RTL is not built with pie
sed -i 's/-k-pie/-k-z shstk/' Pascal/Release.cfg
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make -B LAZDIR=--lazarusdir=/usr/lib/lazarus DESTDIR="$pkgdir/"
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
|