diff options
author | J5lx | 2015-08-19 07:43:48 +0200 |
---|---|---|
committer | J5lx | 2015-08-19 07:43:48 +0200 |
commit | 8bb0417c0a4b286be8cc64523f793fac0e485ec3 (patch) | |
tree | 2bb4209707bbc59c2c663a4e6637e58b7f37a55a | |
download | aur-8bb0417c0a4b286be8cc64523f793fac0e485ec3.tar.gz |
1ed8a49-1: Initial package release
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..42c65e52327b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = polyglot-winboard-git + pkgdesc = UCI to XBoard adapter (WinBoard fork) + pkgver = 1ed8a49 + pkgrel = 1 + url = http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=polyglot.git;a=summary + arch = i686 + arch = x86_64 + license = GPL2 + depends = glibc + 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 + +pkgname = polyglot-winboard-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..21dad5eab974 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=polyglot-winboard-git +pkgver=1ed8a49 +pkgrel=1 +pkgdesc="UCI 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') +# 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 +} |