summaryrefslogtreecommitdiff
path: root/libraries/VitaMTP/VitaMTP.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-17 02:53:02 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-17 02:53:02 -0400
commite30158d6f2c06bb47b012c2f3a01b6147060c22e (patch)
treec56028b65f9090f47bee1db0de1ca92133276e02 /libraries/VitaMTP/VitaMTP.SlackBuild
parentc2a5da06dc9624552f1d5b7aa639cf264d4c65e3 (diff)
downloadslackbuilds-e30158d6f2c06bb47b012c2f3a01b6147060c22e.tar.gz
libraries/VitaMTP: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/VitaMTP/VitaMTP.SlackBuild')
-rw-r--r--libraries/VitaMTP/VitaMTP.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/libraries/VitaMTP/VitaMTP.SlackBuild b/libraries/VitaMTP/VitaMTP.SlackBuild
index cc8acb4936..78e1ca6860 100644
--- a/libraries/VitaMTP/VitaMTP.SlackBuild
+++ b/libraries/VitaMTP/VitaMTP.SlackBuild
@@ -22,11 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220417 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - fix broken symlink in doc dir.
+# - remove useless INSTALL from docs.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=VitaMTP
VERSION=${VERSION:-2.5.9}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +44,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
@@ -77,9 +78,9 @@ cd $SRCNAM-$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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
./autogen.sh
@@ -97,17 +98,14 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
install -Dm644 debian/libvitamtp*.udev "$PKG/lib/udev/rules.d/80-psvita.rules"
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog COPYING INSTALL README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a debian/changelog COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mv $PKG/usr/share/doc/vitamtp-2.5.9/html/ $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/$SRCNAM-$VERSION/html/ $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/
rm -f $PKG/usr/lib*/*.la