summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92720d8dc7c046a108bf4f2d7c1789a3045a418a (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
# Maintainer:
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Guillem Rieu <guillemr@gmx.net>

pkgname=ccgo
pkgver=0.3.6.5
pkgrel=6
pkgdesc='Play the game of Go with gnugo or against other players on IGS'
arch=(x86_64)
url='https://ccdw.org/~cjj/prog/ccgo/'
license=(GPL)
depends=(gtkmm gconfmm)
source=("https://ccdw.org/~cjj/prog/$pkgname/src/$pkgname-$pkgver.tar.gz")
sha256sums=('d12be7fb9170d650ae78197983fac05af21ddbf47f7b1a2a14de9aa832ed602c')

prepare() {
  cd $pkgname-$pkgver

  find -name '*.hh' -type f -exec sed -i '/sigc++\/object.h/d' {} +
  find -name '*.cc' -type f -exec sed -i 's/(bind(/(sigc::bind(/' {} +
}

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr
  CXXFLAGS="$CXXFLAGS -std=c++11 -fpermissive" make
}

package() {
  DESTDIR="$pkgdir" make -C $pkgname-$pkgver install
}

# getver: ccdw.org/~cjj/prog/ccgo/ChangeLog
# vim: ts=2 sw=2 et: