Skip to content

Instantly share code, notes, and snippets.

@TheLinx
Created December 8, 2010 17:14
Show Gist options
  • Save TheLinx/733574 to your computer and use it in GitHub Desktop.
Save TheLinx/733574 to your computer and use it in GitHub Desktop.
post_install() {
update-desktop-database -q
update-mime-database usr/share/mime
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_remove() {
post_install
}
post_upgrade() {
post_install
}
# Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze and Linus Sjögren <thelinx@unreliablepollution.net>
pkgname=love
pkgver=0.7.0
pkgrel=3
pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences."
arch=(i686 x86_64)
url="http://love2d.org/"
license=('zlib')
depends=('lua' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug')
makedepends=('wget')
install=('love.install')
source=("https://bitbucket.org/rude/love/downloads/$pkgname-$pkgver-linux-src.tar.gz"
'https://bitbucket.org/rude/love/raw/0.7.0/platform/unix/app.svg'
'https://bitbucket.org/rude/love/raw/0.7.0/platform/unix/game.svg'
'https://bitbucket.org/rude/love/raw/0.7.0/platform/unix/love.desktop'
'https://bitbucket.org/rude/love/raw/0.7.0/platform/unix/love.xml')
md5sums=('a012b0e699794a0e200cd58e783f835b'
'a1e19f91420cc519a683af360f5b1120'
'16f2ecc899c9ffc8b7b7c807f8967861'
'8d28b93962a262f72afab5501d13a307'
'b4f00fb1cb80057a0a371a994100d418')
build() {
cd `find $srcdir/love-*`
./configure --prefix=/usr LDFLAGS="" CXXFLAGS="$CXXFLAGS" || return 1
make DESTDIR=$pkgdir install || return 1
mkdir -p $pkgdir/usr/share/icons/hicolor/scalable/mimetypes
mkdir -p $pkgdir/usr/share/icons/hicolor/scalable/apps
mkdir -p $pkgdir/usr/share/applications
mkdir -p $pkgdir/usr/share/mime/packages
install -Dm0644 $srcdir/app.svg \
$pkgdir/usr/share/icons/hicolor/scalable/apps/love.svg
install -Dm0644 $srcdir/game.svg \
$pkgdir/usr/share/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-love-game.svg
install -Dm0644 $srcdir/love.desktop \
$pkgdir/usr/share/applications/$pkgname.desktop
install -Dm0644 $srcdir/love.xml \
$pkgdir/usr/share/mime/packages/love.xml
install -Dm0644 license.txt \
$pkgdir/usr/share/licenses/$pkgname/license.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment