blob: e772c098ab0478e22d62c3aa6d07e722ba3eb724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Olivia May <olivia.may@tuta.io>
# Contributor: Maxim Kurnosenko <asusx2@mail.ru>
_pkgname=irrlicht
pkgname=irrlicht-svn
pkgver=r6498
pkgrel=1
pkgdesc="An open source high performance realtime 3D graphics engine. (SVN version)"
arch=('i686' 'x86_64' 'armv7h')
url="http://irrlicht.sourceforge.net/"
license=('ZLIB')
depends=('libgl' 'libjpeg' 'bzip2' 'libpng')
makedepends=('mesa' 'unzip' 'libxcursor')
checkdepends=('subversion')
optdepends=('libxcursor: run examples')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::svn://svn.code.sf.net/p/irrlicht/code/trunk")
md5sums=(SKIP)
pkgver() {
cd $srcdir/$pkgname
printf "r%s" "$(svnversion | tr -d 'A-z')"
}
build() {
cd $srcdir/$pkgname/source/Irrlicht
make NDEBUG=1 $MAKEFLAGS sharedlib
}
package() {
cd $srcdir/$pkgname/source/Irrlicht
sed -i "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" Makefile
make install
cd $srcdir/$pkgname/
install -Dm644 readme.txt $pkgdir/usr/share/licenses/$_pkgname/LICENSE
# fix headers permissions
chmod 644 $pkgdir/usr/include/$_pkgname/*
cd $pkgdir/usr/lib
ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1
}
|