libraries/VitaMTP: Fix docs.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-04-17 02:53:02 -04:00
parent c2a5da06dc
commit e30158d6f2
2 changed files with 11 additions and 13 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
PRGNAM="VitaMTP"
VERSION="2.5.9"
HOMEPAGE="https://github.com/codestation/vitamtp"
DOWNLOAD="https://github.com/codestation/vitamtp/archive/v2.5.9.tar.gz"
DOWNLOAD="https://github.com/codestation/vitamtp/archive/v2.5.9/vitamtp-2.5.9.tar.gz"
MD5SUM="fc5c2297edfab5a5ba8e7ad7b7cded81"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""