updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / love / PKGBUILD
blob49c2b052362dc31f7fde2c257c5405c2e30dc9c1
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 # Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze
3 pkgname=love
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."
7 arch=(i686 x86_64)
8 url="http://love2d.org/"
9 license=('zlib')
10 depends=('lua' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug' 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils')
11 makedepends=('wget')
12 install=love.install
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')
26 build() {
27   cd "$srcdir/love-HEAD"
28   ./configure --prefix=/usr LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
29   make
32 package() {
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: