desktop/supertuxkart/PKGBUILD

42 lines
1.4 KiB
Bash
Raw Normal View History

2010-12-24 08:20:06 +08:00
pkgname=supertuxkart
_pkgname=SuperTuxKart
2017-11-20 21:28:21 +08:00
pkgver=0.9.3
2015-04-22 20:52:34 +08:00
pkgrel=1
2010-12-24 08:20:06 +08:00
pkgdesc="Kart racing game featuring Tux and friends."
url="http://supertuxkart.sourceforge.net/"
2012-12-11 15:46:24 +08:00
arch=('x86_64')
license=('GPL3' 'GPL2' 'CCPL-by' 'CCPL-by-sa' 'custom:Public Domain')
2017-11-20 21:28:21 +08:00
depends=('bzip2' 'curl' 'enet' 'fribidi' 'freeglut' 'libgl' 'libjpeg' 'libogg' 'libopenglrecorder'
2015-04-22 20:52:34 +08:00
'libpng' 'libvorbis' 'openal' 'wiiuse' 'bluez-libs' 'glu' 'xorg-xrandr')
2017-11-20 21:28:21 +08:00
makedepends=('cmake' 'subversion' 'mesa' 'imagemagick' 'setconf')
2010-12-24 08:20:06 +08:00
conflicts=('supertuxkart-svn')
2012-03-07 19:00:46 +08:00
categories=('games')
2015-04-22 20:52:34 +08:00
source=("http://downloads.sourceforge.net/project/${pkgname}/${_pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.xz")
2017-11-20 21:28:21 +08:00
md5sums=('8de5455b8fdbb92679e302b76c9041cf')
2010-12-24 08:20:06 +08:00
build() {
2015-04-22 20:52:34 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2014-02-01 09:42:09 +08:00
2012-12-11 15:46:24 +08:00
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
2015-04-22 20:52:34 +08:00
-DIRRLICHT_DIR="$srcdir/irrlicht" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-lpthread -lm -ldl $CXXFLAGS" \
2012-12-11 15:46:24 +08:00
-DUSE_WIIUSE=ON \
-DUSE_FRIBIDI=ON \
..
2010-12-24 08:20:06 +08:00
make
}
package() {
2015-04-22 20:52:34 +08:00
cd "${srcdir}/${pkgname}-${pkgver}/build"
2010-12-24 08:20:06 +08:00
2011-11-17 08:42:36 +08:00
make DESTDIR="${pkgdir}" install
2012-12-11 15:46:24 +08:00
# Licensing
2011-11-17 08:42:36 +08:00
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
2015-04-22 20:52:34 +08:00
ln -s "${pkgdir}/usr/share/${pkgname}/data/CREDITS" "${pkgdir}/usr/share/licenses/${pkgname}/AUTHORS"
cp "${srcdir}/${pkgname}-$pkgver/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-12-24 08:20:06 +08:00
}