summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cbc295b9015e8b89156dd15a31a4b4651d7b9d8 (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
37
38
# Contributor: Feufochmar <feufochmar dot gd at gmail dot com>
# Contributor: Joao Cordeiro <jlcordeiro at gmail dot com>
# Contributor: SirClueless

pkgname=libtcod
pkgver=1.5.1
pkgrel=6
pkgdesc="Roguelike graphics/utility library"
arch=('i686' 'x86_64')
url="https://bitbucket.org/libtcod/libtcod"
license=('BSD')
depends=('libpng' 'sdl' 'glu')
makedepends=('mercurial')
options=(!makeflags)
source=("hg+https://bitbucket.org/$pkgname/$pkgname#tag=$pkgver")
md5sums=('SKIP')

build() {
   cd "$srcdir/$pkgname"

   if test "$CARCH" == x86_64; then
      make -f makefiles/makefile-linux64 clean release TEMP=$srcdir/tmp
   else
      make -f makefiles/makefile-linux clean release TEMP=$srcdir/tmp
   fi
}

package() {
   mkdir -p $pkgdir/usr/lib
   mkdir -p $pkgdir/usr/include/$pkgname

   cd "$srcdir/$pkgname"
   
   install -D -m 644 libtcod{,gui,xx}.so $pkgdir/usr/lib/
   install -D -m 644 include/*.h* $pkgdir/usr/include/$pkgname/
}

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