summaryrefslogtreecommitdiff
path: root/community/csfml/PKGBUILD
blob: 914d804569fd3c481623a86363cd659f1129c146 (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
# $Id: PKGBUILD 21275 2010-07-15 20:18:37Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Arvil <arvil at k3v1n5 dot eu>

pkgname=csfml
pkgver=1.6
pkgrel=1
pkgdesc="C binding for SFML."
arch=('i686' 'x86_64' 'mips64el')
url=http://www.sfml-dev.org
license=('zlib')
depends=('sfml')
source=(http://downloads.sourceforge.net/sfml/SFML-$pkgver-c-sdk-linux-32.tar.gz)
md5sums=('47612e9dc3c9be35e32c188dd937e0d6')

build() {
  cd "$srcdir/SFML-$pkgver/CSFML"

  msg "Building libraries."
  make || return 1
  make DESTDIR=${pkgdir}/usr install || return 1
  
  # Fix the library softlinks
  cd "$pkgdir/usr/lib"
  rm *.so
  for lib in *; do
    ln -s $lib ${lib/.$pkgver/}
  done
}
# vim:set ts=2 sw=2 et: