summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorozgursarier2017-01-23 15:07:24 +0300
committerozgursarier2017-01-23 15:07:24 +0300
commit99a71b8d7dee113320bfa0c2deb13c077447b25f (patch)
treeb46b859eeaaa4018627d602130ddbf7cfff93a61
parentd5e2eec56fd81a8495672f5832eb602bcd66bfdc (diff)
downloadaur-99a71b8d7dee113320bfa0c2deb13c077447b25f.tar.gz
Update to 25.2
-rw-r--r--.SRCINFO24
-rw-r--r--COPYRIGHT (renamed from copyright)0
-rw-r--r--PKGBUILD92
3 files changed, 67 insertions, 49 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8264084567ba..d8e8ea6fb168 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,22 @@
# Generated by mksrcinfo v8
-# Mon Feb 1 15:47:57 UTC 2016
+# Mon Jan 23 12:07:15 UTC 2017
pkgbase = crafty
- pkgdesc = A computer chess program
- pkgver = 25.0.1
+ pkgdesc = A free, open-source computer chess program developed by Dr. Robert M. (Bob) Hyatt
+ pkgver = 25.2
pkgrel = 1
- url = http://www.cis.uab.edu/hyatt/
+ url = http://www.craftychess.com/
arch = i686
arch = x86_64
license = custom
- source = http://www.cis.uab.edu/hyatt/crafty/source/crafty-25.0.1.zip
- source = http://www.cis.uab.edu/hyatt/crafty/book/book.bin
- source = http://www.cis.uab.edu/hyatt/crafty/book/books.bin
- source = copyright
- md5sums = b7acc17fedd528d9651f4e5533263264
- md5sums = 6d527840579904bf0e0b0a456a580a9b
- md5sums = 966a852a2ccd3c32e9167061592928d3
+ source = http://www.craftychess.com/downloads/source/crafty-25.2.zip
+ source = book.bin.orj::http://www.craftychess.com/downloads/book/book.bin
+ source = http://www.craftychess.com/downloads/book/start.pgn.gz
+ source = http://www.craftychess.com/downloads/book/startc.pgn.gz
+ source = COPYRIGHT
+ md5sums = d8ad87d9b0fc39a437595203d7b302fc
+ md5sums = f8f93189c64324b1959a489da822438e
+ md5sums = 880279c223dc34164837a351faafe2f0
+ md5sums = 7a53d5f09d2baa5e7f0df4ee81961cfb
md5sums = 438cec9f32fb79f58822f97cf64e7afb
pkgname = crafty
diff --git a/copyright b/COPYRIGHT
index 77b5c8434e35..77b5c8434e35 100644
--- a/copyright
+++ b/COPYRIGHT
diff --git a/PKGBUILD b/PKGBUILD
index 1b5aaa4633f8..88040727cadc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,65 @@
-# Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
+# Maintainer : Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d>
+# Contributor: Auguste Pop <auguste [at] gmail [dot] com>
+
+_build_book=0 # 0=Uses defauld book.bin
+ # 1=Builds book.bin from book.pgn (Recommended if big book file not bothers you.)
pkgname=crafty
-pkgver=25.0.1
+pkgver=25.2
pkgrel=1
-pkgdesc="A computer chess program"
+pkgdesc="A free, open-source computer chess program developed by Dr. Robert M. (Bob) Hyatt"
arch=('i686' 'x86_64')
-url="http://www.cis.uab.edu/hyatt/"
+url="http://www.craftychess.com/"
license=('custom')
-source=(http://www.cis.uab.edu/hyatt/crafty/source/$pkgname-$pkgver.zip
- http://www.cis.uab.edu/hyatt/crafty/book/book.bin
- http://www.cis.uab.edu/hyatt/crafty/book/books.bin
- copyright)
-md5sums=('b7acc17fedd528d9651f4e5533263264'
- '6d527840579904bf0e0b0a456a580a9b'
- '966a852a2ccd3c32e9167061592928d3'
- '438cec9f32fb79f58822f97cf64e7afb')
-
-prepare()
-{
- cd "$srcdir"
- sed -i -e 's:./runprof:sh ./runprof:' -e \
- "s:'-DTEST:'-DBOOKDIR=\"\\\\\"/usr/share/crafty\\\\\"\" -DTEST:" \
- Makefile
- [[ $arch == "i686" ]] && sed -i -e '/opt/s/ -DINLINEASM//g' Makefile
- sed -i 's:"crafty.hlp":BOOKDIR"/crafty.hlp":' option.c
-
- # bug fix
- sed -i '/PopCnt/s/arg1/x/' boolean.c
+source=("http://www.craftychess.com/downloads/source/$pkgname-$pkgver.zip"
+ "`[[ "$_build_book" = '0' ]] && echo book.bin.orj::`http://www.craftychess.com/downloads/book/book.`[[ "$_build_book" = '0' ]] && echo bin || echo pgn.gz`"
+ "http://www.craftychess.com/downloads/book/start.pgn.gz"
+ "http://www.craftychess.com/downloads/book/startc.pgn.gz"
+ "COPYRIGHT")
+md5sums=('d8ad87d9b0fc39a437595203d7b302fc'
+ "`[[ "$_build_book" = '0' ]] && echo f8f93189c64324b1959a489da822438e || echo 05efad71289b2d328da5110df4a19f85`"
+ '880279c223dc34164837a351faafe2f0'
+ '7a53d5f09d2baa5e7f0df4ee81961cfb'
+ '438cec9f32fb79f58822f97cf64e7afb')
+
+prepare() {
+ cd "$srcdir"
+ sed -i -e 's:./runprof:sh ./runprof:' -e "s:-DTEST:-DBOOKDIR=\"\\\\\"/usr/share/crafty\\\\\"\" -DTEST:" Makefile
+ sed -i 's:"crafty.hlp":BOOKDIR"/crafty.hlp":' option.c
+ sed -i '/PopCnt/s/arg1/x/' boolean.c # bug fix
}
-build()
-{
- cd "$srcdir"
- unset LDFLAGS
- make unix-gcc-profile
+build() {
+ cd "$srcdir"
+ unset LDFLAGS
+ make unix-gcc-profile
+
+ cd "$srcdir"
+
+ msg "Creating books.bin..."
+ ./crafty "book create start.pgn 60" quit
+ mv book.bin books.bin
+
+ msg "Creating bookc.bin..."
+ ./crafty "book create startc.pgn 60" quit
+ mv book.bin bookc.bin
+
+ if [[ "$_build_book" = '0' ]]; then
+ mv book.bin.orj book.bin
+ else
+ msg "Creating book.bin..."
+ ./crafty "book create book.pgn 60" quit
+ fi
}
-package()
-{
- cd "$srcdir"
- install -Dm755 crafty "$pkgdir/usr/bin/crafty"
- install -Dm644 crafty.hlp "$pkgdir/usr/share/crafty/crafty.hlp"
+package() {
+ cd "$srcdir"
+ install -Dm755 crafty "$pkgdir/usr/bin/crafty"
+ install -Dm644 crafty.hlp "$pkgdir/usr/share/crafty/crafty.hlp"
- cd "$srcdir"
- install -m644 book.bin "$pkgdir/usr/share/crafty/"
- install -m644 books.bin "$pkgdir/usr/share/crafty/"
- install -Dm644 copyright "$pkgdir/usr/share/licenses/$pkgname/copyright"
+ cd "$srcdir"
+ install -m777 book.bin "$pkgdir/usr/share/crafty/"
+ install -m644 books.bin "$pkgdir/usr/share/crafty/"
+ install -m644 bookc.bin "$pkgdir/usr/share/crafty/"
+ install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
}