summaryrefslogtreecommitdiffstats
path: root/extra/gnuchess/Pkgfile
blob: df0d29a2b97f350ad10a3e1404c0912d8b10bd7a (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
# Description: Jeu d'échecs
# URL: http://www.gnu.org/software/chess/chess.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: readline
# Run on: readline

name=gnuchess
version=5.07
release=1
group=app
source=(ftp://ftp.gnu.org/pub/gnu/chess/$name-$version.tar.gz
        http://nutyx.meticul.eu/files/patchs/$name/gnuchess-gcc4.patch
        http://nutyx.meticul.eu/files/patchs/$name/gnuchess-glibc210.patch)

build() {
        cd $name-$version
        patch -Np1 -i ../gnuchess-gcc4.patch
	patch -Np0 -i ../gnuchess-glibc210.patch
        ./configure --prefix=/usr
        make
        make prefix=$PKG/usr install
}