diff --git a/packages/php-8.0.2/build.sh b/packages/php-8.0.2/build.sh new file mode 100755 index 0000000..9d5f5c7 --- /dev/null +++ b/packages/php-8.0.2/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +mkdir -p build/tmp build/php +cd build + +curl "https://www.php.net/distributions/php-8.0.2.tar.gz" -o php.tar.gz +tar xzf php.tar.gz --strip-components=1 -C php + +cd php + + +./configure --prefix /piston/packages/php/8.0.2/php-8.0.2 + +make -j$(nproc) +INSTALL_ROOT=build/tmp make install -j$(nproc) + + +mv build/tmp/piston/packages/php/8.0.2/php-8.0.2 ../../output + + diff --git a/packages/php-8.0.2/environment b/packages/php-8.0.2/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/php-8.0.2/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/php-8.0.2/metadata.json b/packages/php-8.0.2/metadata.json new file mode 100644 index 0000000..35ff122 --- /dev/null +++ b/packages/php-8.0.2/metadata.json @@ -0,0 +1,7 @@ +{ + "language": "php", + "version": "8.0.2", + "author": "Martin Kos ", + "dependencies": {}, + "aliases": ["php8","html"] +} \ No newline at end of file diff --git a/packages/php-8.0.2/run b/packages/php-8.0.2/run new file mode 100644 index 0000000..2bce27a --- /dev/null +++ b/packages/php-8.0.2/run @@ -0,0 +1,3 @@ +#!/bin/bash + +php $* \ No newline at end of file diff --git a/packages/php-8.0.2/test.php b/packages/php-8.0.2/test.php new file mode 100644 index 0000000..a0aba93 --- /dev/null +++ b/packages/php-8.0.2/test.php @@ -0,0 +1 @@ +OK \ No newline at end of file diff --git a/packages/php.mk b/packages/php.mk deleted file mode 100644 index 65dbc37..0000000 --- a/packages/php.mk +++ /dev/null @@ -1,24 +0,0 @@ -NAME=php -AUTHOR=Martin Kos -DEPENDENCIES= -COMPILED=false -VERSIONS=7.4.15 8.0.2 - -include common.mk - - -${RUN_FILE}: - echo 'php $$*' > $@ - -${ENV_FILE}: - echo 'export PATH=$$PWD/bin:$$PATH' > $@ - -${BIN_DIR}: ${BUILD_DIR}php-${VERSION}-sources/ - $(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout) - cd $< && ./configure --prefix ${PREFIX} - $(MAKE) -C $< - INSTALL_ROOT=${TMP_DIR}/ $(MAKE) -C $< install - mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -r ${TMP_DIR} - -${BUILD_DIR}php-${VERSION}-sources.tar.gz: - curl "https://www.php.net/distributions/php-${VERSION}.tar.gz" -o $@ diff --git a/packages/php.test b/packages/php.test deleted file mode 100644 index 997ffba..0000000 --- a/packages/php.test +++ /dev/null @@ -1,3 +0,0 @@ -