summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJakob Gahde2016-06-07 17:56:00 +0200
committerJakob Gahde2016-06-07 17:56:00 +0200
commit72630da7d276acdf7b6f06e5016483901e980be0 (patch)
treeee06f8873874ab06da02108580a492d8f51b81cd /PKGBUILD
parente4fd3eb968afadeb2d05aa8c7dbfe75daa22835a (diff)
downloadaur-polyglot-winboard-git.tar.gz
polyglot-winboard-git 1:r44.5904a29-1: Download from actual repository
I finally figured out where it's located! Yay!
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 11 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 12fc4b1fcba..95f78edeb73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+_pkgname=polyglot
pkgname=polyglot-winboard-git
-pkgver=d86ce4e
+pkgver=r44.5904a29
pkgrel=1
epoch=1
pkgdesc="UCI/USI/UCCI to XBoard adapter (WinBoard fork)"
@@ -9,32 +10,28 @@ 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}")
+replaces=("${_pkgname}")
+source=("git+http://hgm.nubati.net/git/${_pkgname}.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}/${_pkgname}"
- 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}/${_pkgname}"
./configure --prefix=/usr
make
}
package() {
- _enter_polyglot_directory
+ cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
}