diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -2,36 +2,32 @@ pkgname=dreamchess-git _pkgname=dreamchess -pkgver=312.c7fad45 -pkgrel=3 +pkgver=365.55ffa1b +pkgrel=1 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=(mxml sdl_mixer sdl_image glew hicolor-icon-theme) +depends=(cmake mxml sdl_mixer sdl_image glew hicolor-icon-theme) makedepends=(git) source=('git://github.com/dreamchess/dreamchess.git') md5sums=('SKIP') pkgver() { - cd "${srcdir}/dreamchess" + cd "${srcdir}/${_pkgname}" echo "$(git rev-list --count HEAD).$(git log --pretty=format:'%h' -n 1)" } build() { - cd "${srcdir}/${_pkgname}" - # must autoreconf or missing install-sh - autoreconf -fvi - ./configure --prefix=/usr + cd "${srcdir}/${_pkgname}/cmake" + cmake -DCMAKE_INSTALL_PREFIX=/usr .. make } package() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/${_pkgname}/cmake" make DESTDIR="${pkgdir}" install } |