blob: a42864b00803dc5d2a94a43b1d4d502771a60068 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: envolution
# Contributor: Eric Ozwigh <ozwigh at gmail dot com>
# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
# shellcheck shell=bash disable=SC2034,SC2154
# source and patches from debian sid
pkgname=phalanx
pkgver=25.1.1
_debmajor=${pkgver%%.*}
pkgrel=2
pkgdesc="A chess engine which understands the xboard protocol. It's suitable for beginner and intermediate players"
url="http://phalanx.sourceforge.net/"
license=('GPL-3.0-or-later')
arch=('i686' 'x86_64')
optdepends=('xboard: to be able to use the xboard graphical frontend')
source=("http://deb.debian.org/debian/pool/main/p/phalanx/phalanx_${_debmajor}.orig.tar.gz"
"http://deb.debian.org/debian/pool/main/p/phalanx/phalanx_${pkgver/./-}.debian.tar.xz")
sha256sums=('b3874d5dcd22c64626b2c955b18b27bcba3aa727855361a91eab57a6324b22dd'
'5f3c7e13054f28760b926bc16dde41538ffce37d66ad59c12671c9ad9d7143b5')
prepare() {
rm -rf "$pkgname-$pkgver" && mv Phalanx-* "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
# Apply Debian patches using the series file
if [[ -f "../debian/patches/series" ]]; then
while read -r patch; do
[[ -z $patch || $patch == \#* ]] && continue
patch -Np1 <"../debian/patches/${patch}" || return 1
done <"../debian/patches/series"
else
echo "Warning: patches/series file not found, skipping patching"
fi
}
build() {
cd "$pkgname-$pkgver"
make prefix=/usr
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" \
prefix=/usr \
bindir=/usr/bin \
pluginsdir=/usr/share/${pkgname} \
install
}
# vim:set ts=2 sw=2 et:
|