desktop/irrlicht/PKGBUILD

58 lines
1.8 KiB
Bash
Raw Normal View History

2012-11-11 03:45:07 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
pkgname=irrlicht
2016-05-29 14:50:46 +08:00
pkgver=1.8.3
2012-11-11 03:45:07 +08:00
verpfx=${pkgver:0:(-2)}
2016-05-29 14:50:46 +08:00
pkgrel=1
2012-11-11 03:45:07 +08:00
pkgdesc="High performance realtime 3D graphics engine."
arch=('i686' 'x86_64')
url="http://irrlicht.sourceforge.net/"
license=('ZLIB')
depends=('bzip2' 'freeglut' 'libgl' 'libjpeg' 'libpng' 'zlib')
provides=('irrlicht')
conflicts=('irrlicht-svn')
replaces=('irrlicht-svn')
2012-11-11 03:45:07 +08:00
source=("http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.zip"
"include-config.diff"
2016-05-29 14:50:46 +08:00
"makefile-systemlibs.diff"
"glext.h::https://sourceforge.net/p/irrlicht/code/4600/tree/trunk/source/Irrlicht/glext.h?format=raw")
2012-11-11 03:45:07 +08:00
md5sums=('d06329d8f466658caaf4838ba349e393'
'7ff49d8ddc50deac316f4e2141828f31'
2016-05-29 14:50:46 +08:00
'2385b8b5ed3bf9588b2f5db9af3f4788'
'c2904eda7cba605debfbd3812faf9019')
2012-11-11 03:45:07 +08:00
build() {
# Patches.
patch -uN $srcdir/$pkgname-$verpfx/include/IrrCompileConfig.h $srcdir/include-config.diff
patch -uN $srcdir/$pkgname-$verpfx/source/Irrlicht/Makefile $srcdir/makefile-systemlibs.diff
cd $srcdir/$pkgname-$verpfx/source/Irrlicht
sed -i "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \
Makefile
2016-05-29 14:50:46 +08:00
# http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=49811
# Should not be necessary anymore after 1.8.x
cp -R $srcdir/glext.h glext.h
2012-11-11 03:45:07 +08:00
# Compilation.
make sharedlib NDEBUG=1
}
package() {
cd $srcdir/$pkgname-$verpfx/source/Irrlicht
make install
install -d $pkgdir/usr/share/licenses/$pkgname \
$pkgdir/usr/share/doc/$pkgname
install -m644 $srcdir/$pkgname-$verpfx/readme.txt $pkgdir/usr/share/licenses/$pkgname
# Install documentation
cp -r $srcdir/$pkgname-$verpfx/doc/* $pkgdir/usr/share/doc/$pkgname
rm -f $pkgdir/usr/share/doc/$pkgname/*.txt
}