diff options
author | Christoph Willing <chris.willing@linux.com> | 2019-10-30 01:01:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-10-30 01:01:15 +0700 |
commit | c545e2ca016f4813bd9251b594fb112226ba915d (patch) | |
tree | 084f567bde4685a80a4bc287e6177118c0f41d10 /graphics/OpenSubdiv/OpenSubdiv.SlackBuild | |
parent | 618e769f2b80c9562993ca93cd74337a46d08aba (diff) |
graphics/OpenSubdiv: Script improvement.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/OpenSubdiv/OpenSubdiv.SlackBuild')
-rw-r--r-- | graphics/OpenSubdiv/OpenSubdiv.SlackBuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild index 828a8bc69350c..09a81f056a8f2 100644 --- a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild +++ b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild @@ -76,7 +76,10 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_LIBDIR_BASE=lib${LIBDIRSUFFIX} \ + -DCMAKE_DOCDIR_BASE=doc/$PRGNAM-$VERSION \ -DCMAKE_BUILD_TYPE=Release .. + make make install DESTDIR=$PKG cd .. @@ -88,5 +91,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -rf documentation/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Can't have tutorials directory in /usr/bin +mv $PKG/usr/bin/tutorials $PKG/usr/doc/$PRGNAM-$VERSION/ + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |