desktop/supertuxkart/PKGBUILD

60 lines
1.9 KiB
Bash
Raw Normal View History

2010-12-24 08:20:06 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=supertuxkart
_pkgname=SuperTuxKart
2011-11-17 08:42:36 +08:00
pkgver=0.7.3
pkgrel=1
2010-12-24 08:20:06 +08:00
pkgdesc="Kart racing game featuring Tux and friends."
url="http://supertuxkart.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL3' 'GPL2' 'CCPL-by' 'CCPL-by-sa' 'custom:Creative Commons Sampling Plus 1.0' 'custom:SoundSnap license' 'custom:Public Domain')
depends=('bzip2' 'enet' 'freeglut' 'irrlicht' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'openal')
2010-12-24 08:20:06 +08:00
conflicts=('supertuxkart-svn')
changelog=ChangeLog
2011-11-17 08:42:36 +08:00
source=("http://downloads.sourceforge.net/project/${pkgname}/${_pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.bz2")
md5sums=('502664b2ec9ad5ab88b1882fef4c074d')
2010-12-24 08:20:06 +08:00
build() {
2011-11-17 08:42:36 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-12-24 08:20:06 +08:00
LDFLAGS="-lpng -ljpeg" \
LIBS="-lbz2" \
2010-12-24 08:20:06 +08:00
./configure \
--prefix=/usr \
--datadir=/usr/share
2010-12-24 08:20:06 +08:00
make
}
package() {
2011-11-17 08:42:36 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-12-24 08:20:06 +08:00
2011-11-17 08:42:36 +08:00
make DESTDIR="${pkgdir}" install
# Add executable link from /usr/bin.
2011-11-17 08:42:36 +08:00
mkdir -p "${pkgdir}/usr/bin"
echo '#!/bin/bash' > "${pkgdir}/usr/bin/${pkgname}"
echo "/usr/games/${pkgname} \"\${@}\"" >> "${pkgdir}/usr/bin/${pkgname}"
chmod +x "${pkgdir}/usr/bin/${pkgname}"
# Set right game version in .desktop file.
2011-11-17 08:42:36 +08:00
sed -i -e "s/0.5/${pkgver}/" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
# Remove AUTHORS file from documentation folder.
2011-11-17 08:42:36 +08:00
rm "${pkgdir}/usr/share/doc/${pkgname}/AUTHORS"
# Create license folder.
2011-11-17 08:42:36 +08:00
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
# Link credits from license folder.
2011-11-17 08:42:36 +08:00
ln -s "${pkgdir}/usr/share/games/${pkgname}/data/CREDITS" "${pkgdir}/usr/share/licenses/${pkgname}/AUTHORS"
# Move license from documentation folder to license folder.
2011-11-17 08:42:36 +08:00
mv "${pkgdir}/usr/share/doc/${pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-12-24 08:20:06 +08:00
}
2011-11-17 08:42:36 +08:00
# vim:set ts=2 sw=2 et: