diff options
Diffstat (limited to 'php83/php83.SlackBuild')
| -rw-r--r-- | php83/php83.SlackBuild | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/php83/php83.SlackBuild b/php83/php83.SlackBuild index eb4be72..b99009b 100644 --- a/php83/php83.SlackBuild +++ b/php83/php83.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=php83 -VERSION=${VERSION:-8.3.33} +VERSION=${VERSION:-8.3.37} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,9 +43,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 @@ -75,18 +72,16 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf php-$VERSION -tar xvf $CWD/php-$VERSION.tar.xz +tar xvf $CWD/php-$VERSION.tar.xz --no-same-owner cd php-$VERSION chown -R root:root . # Sometimes they ship a few of these: find . -name "*.orig" -delete -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 . ! -type l -a \( \ + \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \ + \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \) \) sed -i "s|build$|php/${VERSION_SUFFIX}/build|" scripts/Makefile.frag sed -i "s|build\"$|php/${VERSION_SUFFIX}/build\"|" scripts/phpize.in @@ -211,11 +206,12 @@ rm -r $PKG/usr/share/fpm $PKG/usr/bin/pear $PKG/usr/bin/peardev mv $PKG/usr/bin/pecl $PKG/usr/bin/pecl-${VERSION_SUFFIX} install -m 644 php.ini-development php.ini-production $PKG/etc/php/${VERSION_SUFFIX}/ -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC cp -a \ CODING_STANDARDS* CONTRIBUTING* EXTENSIONS* LICENSE* NEWS* README* UPGRADING* \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |
