summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28f461258bcf0bbd4d242ec14125fd9e83591d73 (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
# Maintainer:  mrxx <mrxx at cyberhome dot at>
# Contributor: Jeff Youdontneedtoknow <jeffpublicjr at gmail dot com>
# Contributor: yetist <yetist@gmail.com>

pkgname=gmchess
pkgver=0.29.6
pkgrel=4
pkgdesc="Play Chinese chess (Xiangqi) against a human opponent or the computer"
arch=("i686" "x86_64")
url="https://salsa.debian.org/chinese-team/gmchess"
license=('GPL2')
depends=("gtkmm")
makedepends=('pkgconfig' 'intltool')
conflicts=('gmchess-bin' 'eleeye-bin' 'convert-pgn-bin')
install=gmchess.install
source=("$pkgname-$pkgver.tar.gz::https://salsa.debian.org/chinese-team/gmchess/-/archive/master/${pkgname}-master.tar.gz" 'gmchess.install')
sha1sums=('26fb365af83d3364a699175718ca0573c0b62ca5'
          '8ce9d92ee9cda1709098d0a0a46ce9cca9fa83ba')

build() {
   cd "$srcdir/${pkgname}-master"
   autoreconf --install
   autoconf
   ./configure --prefix=/usr
   make
   make  DESTDIR="$srcdir" install
   } 
   
package(){
  install -d -m755 $pkgdir/usr
  install -d -m755 $pkgdir/usr/share
  install -d -m755 $pkgdir/usr/share/locale
  install -d -m755 $pkgdir/usr/share/man
  install -d -m755 $pkgdir/usr/share/$pkgname
  install -d -m755 $pkgdir/usr/share/applications
  install -d -m755 $pkgdir/usr/lib
  install -d -m755 $pkgdir/usr/bin
  
  
  cp -r $srcdir/usr/share/locale/ $pkgdir/usr/share/
  cp -r $srcdir/usr/share/man/ $pkgdir/usr/share/
  cp -r $srcdir/usr/share/$pkgname/ $pkgdir/usr/share
  install -D -m644 $srcdir/usr/share/applications/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  install -D -m644 $srcdir/usr/share/pixmaps/$pkgname.png $pkgdir/usr/share/icons/$pkgname.png
  cp -r $srcdir/usr/lib $pkgdir/usr
  cp -r $srcdir/usr/bin $pkgdir/usr
}