Package Details: crafty 25.0.1-1

Git Clone URL: (read-only)
Package Base: crafty
Description: A computer chess program
Upstream URL:
Licenses: custom
Submitter: Allan
Maintainer: Auguste
Last Packager: Auguste
Votes: 85
Popularity: 0.646228
First Submitted: 2010-11-29 14:25
Last Updated: 2016-02-01 15:48

Latest Comments

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

aksr commented on 2015-09-04 17:46

You must run mksrcinfo with every PKGBUILD update.
That's why the version field isn't updated (to 24.1).
Ignore out-of-date flag, run mksrcinfo and push it.

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?

Misio-it commented 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 :)

Misio-it commented 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.