Package Details: dreamchess-git 396.5f6cc6c-1

Git Clone URL: https://aur.archlinux.org/dreamchess-git.git (read-only)
Package Base: dreamchess-git
Description: DreamChess - OpenGL Chess Game
Upstream URL: https://github.com/dreamchess/dreamchess
Licenses: GPL
Submitter: swalladge
Maintainer: swalladge
Last Packager: swalladge
Votes: 11
Popularity: 0.058563
First Submitted: 2016-02-03 11:31
Last Updated: 2017-08-24 07:36

Latest Comments

swalladge commented on 2017-08-24 07:38

Thanks for the reports! @kmartin haha don't thank me, I just packaged it. The devs are the ones who did all the work! ;)

kmartin commented on 2017-08-24 07:34

confirm one needs to switch depends from
sdl_image sdl_mixer >> sdl2_image sdl2_mixer.
@swalladge thanks for a great game.

cscs commented on 2017-08-23 07:41

Odd it had worked for me. Anyways thanks for quick update.
Looks like new commits have also switched to using sdl2.
Just need to switch depends from
sdl_image sdl_mixer >> sdl2_image sdl2_mixer

swalladge commented on 2017-08-22 08:04

@cscs thanks for the update. I couldn't get it working with your pkgbuild, but managed to sort it out.

cscs commented on 2017-08-22 07:45

Hello friends.
This pkgbuild hasnt been updated in a while and does not reflect current depends or the transition to cmake.

Here are the news depends:
glew
cmake
bison
flex
mxml
sdl
sdl_image
sdl_mixer

And here I humbly submit a pkgbuild that worked for me:

# Maintainer: Samuel Walladge <samuel at swalladge dot id dot au>

pkgname=dreamchess-git
_pkgname=dreamchess
pkgver=312.c7fad45
pkgrel=3
pkgdesc="DreamChess - OpenGL Chess Game"
arch=('i686' 'x86_64')
url="https://github.com/dreamchess/dreamchess"
license=('GPL')

# tried to include all necessary deps and none that aren't
# please notify if list not fully correct
depends=(cmake bison flex mxml sdl_mixer sdl_image glew hicolor-icon-theme)
makedepends=(git)

source=('git://github.com/dreamchess/dreamchess.git')
md5sums=('SKIP')

pkgver() {
cd "${srcdir}/dreamchess"
echo "$(git rev-list --count HEAD).$(git log --pretty=format:'%h' -n 1)"
}

build() {
cd "${srcdir}/${_pkgname}"
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
}

package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et:

swalladge commented on 2016-10-22 00:25

@icasdri 'flex' is part of the base-devel group, and packages from that group aren't required to be added as makedepends (it's assumed to be installed). [1] In fact I can also remove 'bison' from the makedepends for the same reason. Otherwise I would also have to add 'autoconf' and 'make' at least to makedepends.

If you're having trouble building aur packages, make sure everything from the 'base-devel' group is installed. :)

[1]: https://wiki.archlinux.org/index.php/Makepkg#Usage

icasdri commented on 2016-10-21 18:54

'flex' should be added to makedepends, otherwise it fails to build latest version

swalladge commented on 2016-06-29 01:57

hexd, thanks for the comments. :) pkgbuild updated according to suggestions.

hexd commented on 2016-06-29 00:17

(1) Should call configure with "--prefix=/usr" to use it instead of default "/usr/local" (see https://wiki.archlinux.org/index.php/Arch_packaging_standards and other stuff like the PKGBUILD wiki page and perhaps the examples that are installed with pacman like "/usr/share/pacman/PKGBUILD.proto"). (2) Don't remove the man pages, it should work fine with the correct install path of "/usr/share/man/". (3) That package is multi-arch, not arch-independent; it isn't for 'any' arch, i.e., not a single common package built for any architecture, it should have arch=('i686' 'x86_64'), the array with both, as each architecture builds into different ELF files (see https://wiki.archlinux.org/index.php/PKGBUILD#arch for more info); seeing examples for multi-arch packages (e.g. git) and arch-independent packages (e.g. cowsay) should be helpful. (4) Your "depends" should be changed; call "namcap PKGBUILD" and "namcap yourpackage.tar.xz", it will show you some things that needs to be fixed, for example the dependencies that are and aren't needed; (4a) Why expat is needed? The word "expat" doesn't appear anywhere in code (nor expat.h), besides the fact that expat is needed by git and (indirectly) by pacman, I'd remove it; (4b) the hicolor-icon-theme is needed as there are some stuff to be added to "/usr/share/icons/hicolor" (defined in "iconsdir" in "desktop/*/Makefile.am"); (4c) the glew "OpenGL Extension Wrangler Library" needs libgl indirectly, namcap warns libgl shall be removed from "depends". That should be enough for namcap to stop complaining.