updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / love-jit / PKGBUILD
blob6f1e090aeb1c838e63546bde302d8a37d65134f7
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 # Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze
3 pkgname=love-jit
4 pkgver=0.7.2
5 pkgrel=1
6 pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences. This package uses LuaJIT as a backend."
7 arch=(i686 x86_64)
8 url="http://love2d.org/"
9 license=('zlib')
10 depends=('luajit2' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug' 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils')
11 makedepends=('wget')
12 install=love.install
13 conflicts=('love')
14 provides=('love')
15 source=("https://bitbucket.org/rude/love/downloads/love-$pkgver-linux-src.tar.gz"
16         "https://bitbucket.org/rude/love/raw/$pkgver/license.txt"
17         "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/app.svg"
18         "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/game.svg"
19         "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/love.desktop"
20         "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/love.xml")
21 md5sums=('c3e678606bb9a870c31168e85b269e7e'
22          'a4890908149d91bc042b30d00c121c58'
23          'a1e19f91420cc519a683af360f5b1120'
24          '16f2ecc899c9ffc8b7b7c807f8967861'
25          '971bec1bffe4f424972eef2a26d27bec'
26          'b4f00fb1cb80057a0a371a994100d418')
28 build() {
29   cd "$srcdir/love-HEAD"
30   ./configure --prefix=/usr --enable-luajit LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
31   make
34 package() {
35   cd "$srcdir/love-HEAD"
36   make DESTDIR="$pkgdir" install
38   mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
39   mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes"
40   mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/apps"
41   mkdir -p "$pkgdir/usr/share/applications"
42   mkdir -p "$pkgdir/usr/share/mime/packages"
44   install -Dm0644 "$srcdir/license.txt" \
45     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46   install -Dm0644 "$srcdir/app.svg" \
47     "$pkgdir/usr/share/icons/hicolor/scalable/apps/love.svg"
48         install -Dm0644 "$srcdir/game.svg" \
49     "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-love-game.svg"
50   install -Dm0644 "$srcdir/love.desktop" \
51     "$pkgdir/usr/share/applications/$pkgname.desktop"
52   install -Dm0644 "$srcdir/love.xml" \
53     "$pkgdir/usr/share/mime/packages/love.xml"
56 # vim:set ts=2 sw=2 et: