summaryrefslogtreecommitdiff
path: root/pcr/mitsuba/PKGBUILD
diff options
context:
space:
mode:
authorShackra Sislock <jorgean@lavabit.com>2013-07-04 21:52:02 -0600
committerShackra Sislock <jorgean@lavabit.com>2013-07-04 21:52:02 -0600
commitcd298e9e8d80d387472058ff4b089f0ee509d644 (patch)
treed00e711db4fa42f10698791204a1e64ba5611f3c /pcr/mitsuba/PKGBUILD
parent64e1664807a6e37d4fdfc35d271028104b54c4a1 (diff)
parent91bd98130ae07e48bd945b0b87e51a117c29ad6f (diff)
downloadabslibre-cd298e9e8d80d387472058ff4b089f0ee509d644.tar.gz
abslibre-cd298e9e8d80d387472058ff4b089f0ee509d644.tar.bz2
abslibre-cd298e9e8d80d387472058ff4b089f0ee509d644.zip
updating my branches
Diffstat (limited to 'pcr/mitsuba/PKGBUILD')
-rw-r--r--pcr/mitsuba/PKGBUILD55
1 files changed, 25 insertions, 30 deletions
diff --git a/pcr/mitsuba/PKGBUILD b/pcr/mitsuba/PKGBUILD
index 219da84fc..f2d7f83b0 100644
--- a/pcr/mitsuba/PKGBUILD
+++ b/pcr/mitsuba/PKGBUILD
@@ -4,32 +4,31 @@ pkgname=(
mitsuba
blender-addon-mitsuba
)
+_pkgname=${pkgname[0]}
_bldname=${pkgname[1]::7}
-_addname=${pkgname[0]}-${_bldname}
-pkgver=0.4.4 # Thu Feb 28 15:00:37 2013 -0800 tag:v0.4.4 rev:1674
-_pkgdat=20130228
-_pkgrev=1674
-_bldver=2.66
+_addname=$_pkgname-$_bldname
+pkgver=0.4.4
+_bldver=2.67
_addver=0.2.1 # Wed Mar 20 01:30:37 2013 +0100 rev:40 ($srcdir/$_addname/${pkgname[0]}/__init__.py:bl_info>version)
_adddat=20130320
_addrev=40
-_bldep=7
+_bldep=8
_pyver=3.3
-pkgrel=1
+pkgrel=3
pkgdesc='A physically based renderer'
arch=(
i686
x86_64
mips64el
)
-url=https://${pkgname[0]}-renderer.org/
+url=https://www.$_pkgname-renderer.org/
license=GPL3
depends=(
boost-libs
collada-dom
glew
libxxf86vm
- 'openexr=2.0.0'
+ openexr
qt4
xerces-c
)
@@ -44,28 +43,25 @@ makedepends=(
mercurial
python
)
-install=$pkgname.install
+install=$_pkgname.install
source=(
- hg+https://${pkgname[0]}-renderer.org/hg/${pkgname[0]}
- hg+https://${pkgname[0]}-renderer.org/hg/$_addname
+ ${url}hg/$_pkgname/archive/v$pkgver.tar.bz2
+ hg+${url}hg/$_addname
${pkgname[1]}.install
)
-sha512sums=(SKIP SKIP SKIP)
+sha512sums=(
+ 66dcab376a44eeb2fbe808a32ead5b554d777fb2f6a73c43883086b7829e0c697aaeccbb6fbbed9fcb221684a64ccce8be81a78ebcd228316ea12b8f6f3e7f6c
+ SKIP SKIP
+)
prepare() {
mv $srcdir/${pkgname[1]}.install $startdir
- cd $srcdir/${pkgname[0]}
+ cd $srcdir/$_pkgname-v$pkgver
[[ -d build ]] && rm -r build
mkdir build
- cd $startdir/../srcdest/${pkgname[0]}
-
- msg "${pkgname[0]}"
- hg update -c v$pkgver
- hg log -l 1 -r v$pkgver
-
cd $startdir/../srcdest/$_addname
msg "${pkgname[1]}"
@@ -74,7 +70,7 @@ prepare() {
}
build() {
- cd $srcdir/${pkgname[0]}/build
+ cd $srcdir/$_pkgname-v$pkgver/build
[[ $CARCH != x86_64 ]] && DMTS_SSE='-DMTS_SSE=OFF'
@@ -83,24 +79,23 @@ build() {
-DBoost_PYTHON_LIBRARY=/usr/lib/libboost_python${_pyver::1}.so\
-DPYTHON_INCLUDE_DIR=/usr/include/python${_pyver}m\
-DPYTHON_LIBRARY=/usr/lib/libpython${_pyver}m.so
-
setarch $CARCH make
}
package_mitsuba() {
- cd $srcdir/${pkgname[0]}/build
+ cd $srcdir/$_pkgname-v$pkgver/build
setarch $CARCH make DESTDIR=$pkgdir install
#fixing files and folders location
a=$pkgdir/usr
- b=$srcdir/${pkgname[0]}
- install -d $a/{bin,lib{,/python$_pyver/lib-dynload},share/{applications,{licenses/,}${pkgname[0]},pixmaps}}
- install -m644 $b/data/linux/${pkgname[0]}.desktop $a/share/applications
- install -m644 $b/src/mtsgui/resources/${pkgname[0]}48.png $a/share/pixmaps
- install -m644 $b/doc/license.txt $a/share/licenses/${pkgname[0]}/LICENSE
+ b=$srcdir/$_pkgname-v$pkgver
+ install -d $a/{bin,lib{,/python$_pyver/lib-dynload},share/{applications,{licenses/,}$_pkgname,pixmaps}}
+ install -m644 $b/data/linux/$_pkgname.desktop $a/share/applications
+ install -m644 $b/src/mtsgui/resources/${_pkgname}48.png $a/share/pixmaps
+ install -m644 $b/doc/license.txt $a/share/licenses/$_pkgname/LICENSE
mv $a/{m{itsuba,ts{gui,import,srv,util}},bin}
mv $a/lib{${pkgname[0]}-{bidir,core,hw,render}.so,}
- mv $a/{{data,plugins},share/${pkgname[0]}}
+ mv $a/{{data,plugins},share/$_pkgname}
mv $a/{python/mitsuba.so,lib/python$_pyver/lib-dynload}
mv $a/{sdk/include,}
rmdir $a/{python,sdk}
@@ -124,7 +119,7 @@ package_blender-addon-mitsuba() {
a=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons
b=$pkgdir/usr/share/licenses/$pkgname
- c=$srcdir/$_pkgname/doc/license.txt
+ c=$srcdir/$_pkgname-v$_pkgver/doc/license.txt
install -d $a && cp -a $_pkgname $a
install -d $b && install -m644 $c $b/LICENSE