1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 # Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze
6 pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences."
8 url="http://love2d.org/"
10 depends=('lua' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug' 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils')
13 source=("https://bitbucket.org/rude/love/downloads/$pkgname-$pkgver-linux-src.tar.gz"
14 "https://bitbucket.org/rude/love/raw/$pkgver/license.txt"
15 "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/app.svg"
16 "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/game.svg"
17 "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/love.desktop"
18 "https://bitbucket.org/rude/love/raw/$pkgver/platform/unix/love.xml")
19 md5sums=('c3e678606bb9a870c31168e85b269e7e'
20 'a4890908149d91bc042b30d00c121c58'
21 'a1e19f91420cc519a683af360f5b1120'
22 '16f2ecc899c9ffc8b7b7c807f8967861'
23 '971bec1bffe4f424972eef2a26d27bec'
24 'b4f00fb1cb80057a0a371a994100d418')
27 cd "$srcdir/love-HEAD"
28 ./configure --prefix=/usr LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
33 cd "$srcdir/love-HEAD"
34 make DESTDIR="$pkgdir" install
36 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
37 mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes"
38 mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/apps"
39 mkdir -p "$pkgdir/usr/share/applications"
40 mkdir -p "$pkgdir/usr/share/mime/packages"
42 install -Dm0644 "$srcdir/license.txt" \
43 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 install -Dm0644 "$srcdir/app.svg" \
45 "$pkgdir/usr/share/icons/hicolor/scalable/apps/love.svg"
46 install -Dm0644 "$srcdir/game.svg" \
47 "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-love-game.svg"
48 install -Dm0644 "$srcdir/love.desktop" \
49 "$pkgdir/usr/share/applications/$pkgname.desktop"
50 install -Dm0644 "$srcdir/love.xml" \
51 "$pkgdir/usr/share/mime/packages/love.xml"
54 # vim:set ts=2 sw=2 et: