diff options
Diffstat (limited to 'perl/perl-File-Slurp')
-rw-r--r-- | perl/perl-File-Slurp/README | 5 | ||||
-rw-r--r-- | perl/perl-File-Slurp/perl-File-Slurp.SlackBuild | 45 | ||||
-rw-r--r-- | perl/perl-File-Slurp/perl-File-Slurp.info | 6 |
3 files changed, 27 insertions, 29 deletions
diff --git a/perl/perl-File-Slurp/README b/perl/perl-File-Slurp/README index 738ef85e93..f9be179772 100644 --- a/perl/perl-File-Slurp/README +++ b/perl/perl-File-Slurp/README @@ -1,3 +1,4 @@ This perl module provides subs that allow you to read or write entire -files with one simple call. They are designed to be simple to use, have -flexible ways to pass in or get the file contents and to be very efficient. +files with one simple call. They are designed to be simple to use, +have flexible ways to pass in or get the file contents and to be very +efficient. diff --git a/perl/perl-File-Slurp/perl-File-Slurp.SlackBuild b/perl/perl-File-Slurp/perl-File-Slurp.SlackBuild index 1433ba7d43..538d99adb2 100644 --- a/perl/perl-File-Slurp/perl-File-Slurp.SlackBuild +++ b/perl/perl-File-Slurp/perl-File-Slurp.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-File-Slurp @@ -22,27 +22,32 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220411 bkw: Modified by SlackBuilds.org, BUILD=2: +# - make noarch. +# - fix doc permissions. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-File-Slurp -VERSION=${VERSION:-9999.19} -BUILD=${BUILD:-1} +VERSION=${VERSION:-9999.27} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=File-Slurp -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac +ARCH=noarch + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="README Changes" +DOCS="README.md Changes" set -e @@ -55,9 +60,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 \ + -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 {} \+ perl Makefile.PL \ PREFIX=/usr \ @@ -66,25 +71,17 @@ perl Makefile.PL \ make make test make install DESTDIR=$PKG -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 +gzip -9 $PKG/usr/man/man*/* -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -# Remove perllocal.pod and other special files that don't need to be installed, -# as they will overwrite what's already on the system. find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true - -# Remove empty directories find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/perl/perl-File-Slurp/perl-File-Slurp.info b/perl/perl-File-Slurp/perl-File-Slurp.info index bc03a8f218..abdce6f049 100644 --- a/perl/perl-File-Slurp/perl-File-Slurp.info +++ b/perl/perl-File-Slurp/perl-File-Slurp.info @@ -1,8 +1,8 @@ PRGNAM="perl-File-Slurp" -VERSION="9999.19" +VERSION="9999.27" HOMEPAGE="https://metacpan.org/pod/File::Slurp" -DOWNLOAD="https://cpan.metacpan.org/authors/id/U/UR/URI/File-Slurp-9999.19.tar.gz" -MD5SUM="7d584cd15c4f8b9547765eff8c4ef078" +DOWNLOAD="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-9999.27.tar.gz" +MD5SUM="1c8d53024597ba474296c461b30f32e5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |