summaryrefslogtreecommitdiff
path: root/community/esdl/PKGBUILD
blob: f9ce99d8e2e9bc393c758b59b18f7953f5ad8135 (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
39
# $Id: PKGBUILD 61589 2012-01-03 23:37:49Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: kappa <kappacurve@gmail.com>

pkgname=esdl
pkgver=1.2
pkgrel=1
epoch=2
arch=('x86_64' 'i686' 'mips64el')
pkgdesc="SDL and OpenGL bindings for the Erlang programming language"
url="http://esdl.sourceforge.net/"
license=('custom')
depends=('erlang' 'sdl' 'mesa')
source=("$pkgname-$pkgver.tar.gz::https://nodeload.github.com/dgud/esdl/tarball/master")
md5sums=('d51f8e2fe07b9e82ff9c2e06af35e3eb')
_dirname='dgud-esdl-4139134'

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

  find -type f -print0 | xargs -0 chmod 644
  make
}

package() {
  cd "$srcdir/$_dirname"

  make INSTALLDIR="$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver" install

  ## An attempt to make wings3d compile with esdl 1.2
  #ln -s /usr/lib/erlang/lib/wx-0.99/include/glu.hrl \
  #  "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver/include/glu.hrl"
  #ln -s /usr/lib/erlang/lib/wx-0.99/include/gl.hrl \
  #  "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver/include/gl.hrl"

  install -Dm644 license.terms "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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