desktop/xmoto/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2011-07-22 03:45:44 +08:00
pkgname=xmoto
2014-07-04 23:16:50 +08:00
pkgver=0.5.11
pkgrel=2
2011-07-22 03:45:44 +08:00
pkgdesc="A challenging 2D motocross platform game, where physics play an important role."
2014-07-04 23:16:50 +08:00
arch=('x86_64')
2011-07-22 03:45:44 +08:00
url="http://xmoto.tuxfamily.org"
license=('GPL')
depends=('bzip2' 'glu' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl'
2014-07-04 23:16:50 +08:00
'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'libxdg-basedir')
2012-09-21 01:58:51 +08:00
makedepends=('desktop-file-utils')
2012-03-07 19:00:46 +08:00
categories=('games')
2014-07-04 23:16:50 +08:00
source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz")
sha256sums=('a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2')
2011-07-22 03:45:44 +08:00
build() {
2014-07-04 23:16:50 +08:00
cd ${pkgname}-${pkgver}
2011-07-22 03:45:44 +08:00
./configure \
LDFLAGS="-L/usr/lib" \
--prefix=/usr \
--disable-sdltest
make
}
package() {
2014-07-04 23:16:50 +08:00
cd ${pkgname}-${pkgver}
2011-07-22 03:45:44 +08:00
2012-09-21 01:58:51 +08:00
make DESTDIR="${pkgdir}" mangdir=/usr/share/man/man6 install
2011-07-22 03:45:44 +08:00
2012-09-21 01:58:51 +08:00
# install desktop file
desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \
--dir="${pkgdir}/usr/share/applications" \
2014-07-04 23:16:50 +08:00
extra/xmoto.desktop
2012-09-21 01:58:51 +08:00
# install icon
2014-07-04 23:16:50 +08:00
install -Dm0644 extra/xmoto.xpm \
2012-09-21 01:58:51 +08:00
"${pkgdir}/usr/share/pixmaps/xmoto.xpm"
2011-07-22 03:45:44 +08:00
}