diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 13 insertions, 17 deletions
@@ -1,40 +1,36 @@ # Maintainer: Jakob Gahde <j5lx@fmail.co.uk> +_srcname=polyglot +_pkgname=polyglot-winboard pkgname=polyglot-winboard-git -pkgver=d86ce4e -pkgrel=1 +pkgver=r44.5904a29 +pkgrel=3 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") +makedepends=('git') +provides=("${_pkgname}=${pkgver}") +conflicts=("${_pkgname}") +source=("git+http://hgm.nubati.net/git/${_srcname}.git") 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 + cd "${srcdir}/${_srcname}" - pwd | grep -Po '[a-f0-9]+$' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - _enter_polyglot_directory + cd "${srcdir}/${_srcname}" ./configure --prefix=/usr - make + make CFLAGS="$CFLAGS -fcommon" } package() { - _enter_polyglot_directory + cd "${srcdir}/${_srcname}" make DESTDIR="${pkgdir}" install } |