summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12fc4b1fcba902eb0f7117b614b64ea8d6ccfcfe (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=polyglot-winboard-git
pkgver=d86ce4e
pkgrel=1
epoch=1
pkgdesc="UCI/USI/UCCI to XBoard adapter (WinBoard fork)"
arch=('i686' 'x86_64')
url="http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=polyglot.git;a=summary"
license=('GPL2')
depends=('glibc')
provides=('polyglot')
conflicts=('polyglot')
replaces=('polyglot')
# If anyone knows the URL of the actual repository, please tell me!
source=("polyglot.tar.gz::http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=polyglot.git;a=snapshot;h=refs/heads/learn;sf=tgz")
md5sums=('SKIP')

_enter_polyglot_directory() {
  cd $(ls -lt --color=never $srcdir | grep '^d' | grep -Eo 'polyglot-learn-[a-f0-9]+$' | head -n1)
}

pkgver() {
  _enter_polyglot_directory

  pwd | grep -Po '[a-f0-9]+$'
}

build() {
  _enter_polyglot_directory

  ./configure --prefix=/usr
  make
}

package() {
  _enter_polyglot_directory

  make DESTDIR="${pkgdir}" install
}