Package Details: crafty 25.2-2

Git Clone URL: (read-only)
Package Base: crafty
Description: A free, open-source computer chess program developed by Dr. Robert M. (Bob) Hyatt
Upstream URL:
Licenses: custom
Submitter: Allan
Maintainer: ozgursarier
Last Packager: ozgursarier
Votes: 87
Popularity: 0.019334
First Submitted: 2010-11-29 14:25
Last Updated: 2017-03-25 19:37

Latest Comments

anthraxx commented on 2018-03-05 12:26

  • don't use binary blobs uploaded to the AUR like a .tar.bz2 tarball this is not a CDN

ozgursarier commented on 2017-03-25 19:30

Build issue for non-popcnt CPUs fixed now.
I also add rc file and some docs for crafty.

pezcurrel commented on 2017-03-18 13:54

==> Creating books.bin...
/var/tmp/volatile/yaourt-tmp-gnucco/aur-crafty/./PKGBUILD: line 34: 5253 Illegal instruction (core dumped) ./crafty "book create start.pgn 60" quit
==> ERROR: A failure occurred in build().

aksr commented on 2017-03-15 05:39

Doesn't build.

ozgursarier commented on 2017-01-23 12:09

Updated to 25.2

grufo commented on 2016-08-28 03:05

It seems that the upstream URL is gone, and the files “book.bin” and “books.bin” are missing.

There is also an error in the PKGBUILD: the permissions for the files “book.bin” and “books.bin” should be 666 (they are used by Crafty for learning) – and they should be listed within the “backup” array of the PKGBUILD.

Therefore I made a new PKGBUILD trying to fix everything. But since the files “book.bin” and “books.bin” are missing I preserved them inside the tarball. For downloading it, please see:

For the PKGBUILD only, please see:

haawda commented on 2016-08-24 16:10

Also the "Upstream URL" should be changed in this case.

blacktav commented on 2016-08-23 20:07

Dr. Hyatt's page seems to have disappeared from his University
An alternate download is

fhr commented on 2014-12-24 05:17

There's a 24.1 version as of November. Install works perfectly by simply changing pkgver and the md5sum.

luismy commented on 2014-09-16 22:08

Thanks, now it work ok.

Auguste commented on 2014-09-15 16:42


luismy commented on 2014-09-15 15:50

Hello, I get error again in this version.

In this lik I paste the errors:

Please, Can you fix it?


luismy commented on 2013-11-21 13:54

Hello, I get a compilation error:

inline32.h:12:1: error: el operando ‘asm’ tiene restricciones imposibles
asm(" xorl %0, %0 " "\n\t"

Makefile:350: recipe for target 'crafty.o' failed

Can you fix it?


Auguste commented on 2013-09-24 04:40

thank you for the link, updated the PKGBUILD without bumping the version.

corvinusz commented on 2013-09-23 14:56

freebsd ports are yet available
_ contains mentioned files, i.e.

Auguste commented on 2013-02-16 14:11

the upstream ftp is down for now. there's nothing i can do about that.

the new urls come from another site seems to be dedicated to the crafty chess engine.

the source code is the same to the upstream, according to md5sum, while the book.bin is different. how different? i honestly don't know.

agapito commented on 2013-02-16 13:39

Please fix the links.

Anonymous comment on 2013-02-13 00:54

External links are not working.

DGalizzi commented on 2012-10-20 17:57

Sorry I answer so late, I expected an e-mail notification but never happened. It's working now, the server must have been down. Thank you.

Auguste commented on 2012-10-09 02:48

@DGalizzi, i don't have problem downloading the required files. can you try again?

DGalizzi commented on 2012-10-08 21:16

I get:
==> ERROR: Failure while downloading book.bin
The link appears to be broken.

haawda commented on 2012-02-13 07:03

You have to download the tarball, not only the PKGBUILD.

quanticle commented on 2012-02-13 04:31

I tried to run makepkg on the PKGBUILD posted here and makepkg fails with the following error: "ERROR: copyright was not found in the build directory and is not a URL."

Now, the PKGBUILD says that the license is 'custom'. Does this mean I have to go and get they copyright/license myself? And if so, where do I put it?

capoeira commented on 2011-08-16 14:33

thanks, that explains why the installer is playing a game. lol

Auguste commented on 2011-08-16 11:07

we compile a version of crafty first, then run it against a test case to collect run time information, then compile it again using the information collected previously.

capoeira commented on 2011-08-16 10:53

what does "profile guided build" mean, please?

Auguste commented on 2011-08-16 04:42

for people who doesn't want a profile guided build, PKGBUILD has to be modified.

put the following line before make

sed -i 's/^PROFILE_USE_FLAGS=.*$/PROFILE_USE_FLAGS=/' Makefile

and change "make profile" into "make linux" if CARCH=i686, or "make linux-64" if CARCH=x86_64.

Auguste commented on 2011-08-16 01:43

as this is aur, i think a profile guided build would be more appropriate as this is an chess engine.

anyway, you can change the make target into linux or linux-64 if you don't want this.

capoeira commented on 2011-08-15 21:34

what is this? the instaler is playing chess game?

Anonymous comment on 2011-03-25 13:03

mikesd: to make the "linux" target on 23.4, just remove the "-ansi" flag in CFLAGS and replace -DINLINE64 with -DINLINE32 in Makefile. There stills are a lot of warnings but the output executable seems to works fine. Let me to know if you need help with PKGBUILD :)

Anonymous comment on 2011-03-25 13:03

mikesd: to make the "linux" target, just remove the "-ansi" flag in CFLAGS and replace -DINLINE64 with -DINLINE32 in Makefile. There stills are a lot of warnings but the output executable seems to works fine. Let me to know if you need help with PKGBUILD :)

Anonymous comment on 2010-12-24 14:23

crafty 23.4.1 is okay on my desktop. How can I get more error information on the one that's not working? The build is very messy - can't post the output until later.

mikesd commented on 2010-12-24 06:58

Bugger! I have rolled back to 23.3-1 until I can look into this. Sorry.

Anonymous comment on 2010-12-24 01:58

latest update (23.3-1 -> 23.4-1) breaks crafty. Xboard says 'Illegal move rejected by chess program" and just runs the clock. crafty on CLI says legitimate opening moves are illegal and won't move.

mikesd commented on 2010-12-13 08:44

Oh dear. This package builds though it is quite ugly. If anyone has a cleaner PKGBUILD or want's to adopt it let me know.

The patch is new and simply replaces the new CFLAGS with those from 23.3 which don't give as many warnings.

I'll try and look into this during the holidays.

Allan commented on 2010-11-29 14:26

Dropped from [community]. Requires an update.