diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/irrlicht/PKGBUILD | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/irrlicht/PKGBUILD')
-rw-r--r-- | community/irrlicht/PKGBUILD | 62 |
1 files changed, 26 insertions, 36 deletions
diff --git a/community/irrlicht/PKGBUILD b/community/irrlicht/PKGBUILD index 53ac71ce8..ae8af24b7 100644 --- a/community/irrlicht/PKGBUILD +++ b/community/irrlicht/PKGBUILD @@ -1,13 +1,14 @@ -# $Id: PKGBUILD 79765 2012-11-12 07:14:50Z svenstaro $ +# $Id: PKGBUILD 102440 2013-12-11 11:35:15Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Hilton Medeiros <medeiros.hilton AT gmail DOT com> # Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com> # Contributor: Paolo Fagni <paolo.fagni AT mail DOT com> # Contributor: Lukas Kropatschek <lukas.krop AT gmail DOT com> -pkgname=irrlicht -pkgver=1.8 -pkgrel=1 +pkgbase=irrlicht +pkgname=('irrlicht' 'irrlicht-docs') +pkgver=1.8.1 +pkgrel=2 pkgdesc="An open source high performance realtime 3D graphics engine." arch=('i686' 'x86_64') url="http://irrlicht.sourceforge.net/" @@ -17,54 +18,43 @@ makedepends=('mesa' 'unzip' 'libxcursor') optdepends=('libxcursor: run examples') source=("http://downloads.sourceforge.net/irrlicht/$pkgname-$pkgver.zip") noextract=($pkgname-$pkgver.zip) -md5sums=('d06329d8f466658caaf4838ba349e393') +md5sums=('db97cce5e92da9b053f4546c652e9bd5') build() { - unzip $pkgname-$pkgver.zip + unzip $pkgbase-$pkgver.zip - cd $srcdir/$pkgname-$pkgver - - cd source/Irrlicht - sed -i "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \ - Makefile + cd $srcdir/$pkgbase-$pkgver/source/Irrlicht make NDEBUG=1 sharedlib +} - make NDEBUG=1 +package_irrlicht() { + cd $srcdir/$pkgbase-$pkgver/source/Irrlicht - install -d $pkgdir/usr/lib \ - $pkgdir/usr/share/licenses/$pkgname \ - $pkgdir/usr/share/$pkgname/examples/bin \ - $pkgdir/usr/share/doc/$pkgname + sed -i "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" Makefile make install - cd $srcdir/$pkgname-$pkgver/ - install -m644 readme.txt $pkgdir/usr/share/licenses/$pkgname - - # Install static library and fix headers permissions - install -m644 lib/Linux/libIrrlicht.a $pkgdir/usr/lib - chmod 644 $pkgdir/usr/include/$pkgname/* + cd $srcdir/$pkgbase-$pkgver/ + install -Dm644 readme.txt $pkgdir/usr/share/licenses/$pkgbase/LICENSE - # Install media files for examples - cp -r media $pkgdir/usr/share/$pkgname - - # Install documentation - cp -r doc/* $pkgdir/usr/share/doc/$pkgname - rm -f $pkgdir/usr/share/doc/$pkgname/*.txt + # fix headers permissions + chmod 644 $pkgdir/usr/include/$pkgbase/* cd $pkgdir/usr/lib ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1 +} - # Just a helper for examples compilation - ln -s libIrrlicht.so.$pkgver $srcdir/$pkgname-$pkgver/lib/Linux/libIrrlicht.so +package_irrlicht-docs() { + cd $srcdir/$pkgbase-$pkgver/ - # Edit, build and install the examples - cd $srcdir/$pkgname-$pkgver/examples - sed -i '/define USE_IRRKLANG/s:.*://&:' ./Demo/CDemo.h - sed -i '/^CXXFLAGS/d' $(grep -Rl "^CXXFLAGS =" *) + install -d $pkgdir/usr/share/$pkgbase \ + $pkgdir/usr/share/doc/$pkgbase - make + # install media files for examples + cp -r media $pkgdir/usr/share/$pkgbase - install -m755 ../bin/Linux/* /$pkgdir/usr/share/$pkgname/examples/bin/ + # install documentation + cp -r doc/* $pkgdir/usr/share/doc/$pkgbase + rm -f $pkgdir/usr/share/doc/$pkgbase/*.txt } |