summaryrefslogtreecommitdiff
path: root/community/caph/PKGBUILD
blob: 2a1de1674ad938d82e12e31b1783e4f8af844b14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 33204 2010-11-22 23:40:32Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: jose <jose1711 [at] gmail (dot) com>

pkgname=caph
arch=('i686' 'x86_64' 'mips64el')
pkgver=1.1
pkgrel=1
pkgdesc="A sandbox game based on physics which uses doodles as a primary gameplay element"
license=('GPL')
url="http://sourceforge.net/projects/caphgame/"
depends=('sdl' 'libgl' 'libpng')
makedepends=('mesa')
source=("http://sourceforge.net/projects/caphgame/files/caph/caphgame-${pkgver}/caph-${pkgver}.tar.bz2" 
        "caph.desktop")
md5sums=('dbc2cfbb5cd98a77c5b731515d3a77b9'
         '79c6448995026f77fd912dd109b50287')

build() {
  cd $srcdir/caph-${pkgver}/src
  mkdir -p $pkgdir/usr/{bin,share/{caph/maps,doc/caph}}
  ./confg
  ./build
}

package() {
  cd $srcdir/caph-${pkgver}/src
  install -D -m755 ./caph $pkgdir/usr/bin/caph
  install -D -m644 ../doc/caph/* $pkgdir/usr/share/doc/caph/ || true
  install -D -m644 ../share/caph/* $pkgdir/usr/share/caph/ || true
  install -D -m644 ../share/caph/maps/* $pkgdir/usr/share/caph/maps || true
  install -D -m644 $srcdir/caph.desktop $pkgdir/usr/share/applications/caph.desktop
  install -D -m644 ../share/caph/brush.png $pkgdir/usr/share/pixmaps/caph.png
}

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