summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAuguste Pop2015-06-15 12:57:48 +0800
committerAuguste Pop2015-06-15 12:57:48 +0800
commit9d2216ccf79b5b849b37a941b770abdbcd698519 (patch)
treee212f902f9cc753a252d5d3ea20a4cc519139d07
downloadaur-9d2216ccf79b5b849b37a941b770abdbcd698519.tar.gz
migrate from aur
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD38
-rw-r--r--stockfish.install10
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d44b50d00df
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = stockfish
+ pkgdesc = A strong chess engine written by Tord Romstad, Marco Costalba, Joona Kiiski
+ pkgver = 6
+ pkgrel = 2
+ epoch = 1
+ url = http://stockfishchess.org/
+ install = stockfish.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ source = http://stockfish.s3.amazonaws.com/stockfish-6-src.zip
+ md5sums = 85441b396d0c5d650f6afe5608c3a4b2
+
+pkgname = stockfish
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a369c4378ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Auguste Pop < auguste [at] gmail [dot] com >
+# Contributor: P. Badredin <p dot badredin at gmail dot com>
+# Contributor: Justin Blanchard <UncombedCoconut at gmail dot com>
+
+pkgname=stockfish
+pkgver=6
+pkgrel=2
+epoch=1
+pkgdesc="A strong chess engine written by Tord Romstad, Marco Costalba, Joona Kiiski"
+arch=('i686' 'x86_64')
+url="http://stockfishchess.org/"
+license=('GPL3')
+install=${pkgname}.install
+_pkgfilename=${pkgname}-${pkgver}-src
+source=("http://stockfish.s3.amazonaws.com/${_pkgfilename}.zip")
+md5sums=('85441b396d0c5d650f6afe5608c3a4b2')
+
+build()
+{
+ cd "$srcdir/${_pkgfilename}/src"
+
+ if [[ "$CARCH" == "i686" ]];
+ then
+ _arch=x86-32
+ elif grep popcnt /proc/cpuinfo 2>&1
+ then
+ _arch=x86-64-modern
+ else
+ _arch=x86-64
+ fi
+ make profile-build ARCH=$_arch
+}
+
+package()
+{
+ cd "$srcdir/${_pkgfilename}/src"
+ make PREFIX="$pkgdir/usr" install
+}
diff --git a/stockfish.install b/stockfish.install
new file mode 100644
index 00000000000..0f2a13873a9
--- /dev/null
+++ b/stockfish.install
@@ -0,0 +1,10 @@
+post_install() {
+cat << EOM
+
+ ==>
+ ==> Official builds using the Intel compiler are likely to be stronger.
+ ==>
+
+EOM
+}
+