diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-10 15:32:50 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-10 15:32:50 -0400 |
commit | 1a9df115e1af1dfef2dc22dc95251a44dd6a0b57 (patch) | |
tree | c4329f4ec54130f5fedd1440721004018fec6344 /libraries/vcglib | |
parent | 4b08353a5317704b73c2447978343b1bed2d3282 (diff) |
libraries/vcglib: Make noarch; put docs in doc dir.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/vcglib')
-rw-r--r-- | libraries/vcglib/vcglib.SlackBuild | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/libraries/vcglib/vcglib.SlackBuild b/libraries/vcglib/vcglib.SlackBuild index cddfff5291c5a..c5d8a6e7d7a48 100644 --- a/libraries/vcglib/vcglib.SlackBuild +++ b/libraries/vcglib/vcglib.SlackBuild @@ -22,14 +22,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix /usr/include permissions. +# - make this noarch (it really is). +# - move docs and sample code to actual doc directory. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vcglib VERSION=${VERSION:-1.0.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +# 20220410 bkw: This is a header-only library, no ELF binaries and +# no use of /usr/lib(64). +ARCH=noarch + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -38,9 +47,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -50,20 +56,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -73,16 +65,17 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -type f -exec chmod 644 {} \+ -o -type d -exec chmod 755 {} \+ -install -c -d $PKG/usr/include/vcglib -cp -r * /$PKG/usr/include/vcglib +# 20220410 bkw: documentation and sample application code does not +# belong in /usr/include. also, remove a couple of useless empty files. +rm -f \ + apps/trimeshinfo/trimeshinfo1.02/trimeshinfosample/eight3D.ply2.html \ + apps/pivoting/curvature.h +mkdir -p $PKG/usr/include/vcglib $PKG/usr/doc/$PRGNAM-$VERSION +mv eigenlib docs apps *.txt *.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -r * $PKG/usr/include/vcglib -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |