Skip to content

Commit

Permalink
feat: add some php packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Mar 25, 2024
1 parent 696ca82 commit 0a1021c
Show file tree
Hide file tree
Showing 16 changed files with 711 additions and 10 deletions.
47 changes: 47 additions & 0 deletions php-8.1-apcu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.1-apcu
version: 5.1.23
epoch: 0
description: "PHP extension for User Cache"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- php-8.1
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.1
- php-8.1-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/krakjoe/apcu
tag: "v${{package.version}}"
expected-commit: 1b725692b80b4856e8d705a7eda3ac416951aa1f
- name: Prepare build
runs: phpize
- name: Build
runs: |
set -x
./configure
- name: Make install
runs: |
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=apcu.so" > "${{targets.subpkgdir}}/etc/php/conf.d/apcu.ini"
update:
enabled: true
github:
identifier: krakjoe/apcu
strip-prefix: v
tag-filter: v
use-tag: true
47 changes: 47 additions & 0 deletions php-8.1-excimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.1-excimer
version: 1.2.0
epoch: 0
description: "Excimer is a PHP extension that provides an interrupting timer and a low-overhead sampling profiler."
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ${{package.name}}-config
- php-8.1
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.1
- php-8.1-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/wikimedia/mediawiki-php-excimer
tag: "${{package.version}}"
expected-commit: 4cc649be12183c672867e9184d09d7cd9c604d91
- name: Prepare build
runs: phpize
- name: Configure
runs: |
set -x
./configure
- uses: autoconf/make
- name: Make install
runs: |
set -x
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=excimer.so" > "${{targets.subpkgdir}}/etc/php/conf.d/excimer.ini"
update:
enabled: true
github:
identifier: php-excimer/php-excimer
use-tag: true
47 changes: 47 additions & 0 deletions php-8.1-imagick.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.1-imagick
version: 3.7.0
epoch: 0
description: "PHP extension for ImageMagick"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- imagemagick
- php-8.1
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- imagemagick-dev
- php-8.1
- php-8.1-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/Imagick/imagick
tag: "${{package.version}}"
expected-commit: 52ec37ff633de0e5cca159a6437b8c340afe7831
- name: Prepare build
runs: phpize
- name: Configure
runs: |
set -x
./configure
- name: Make install
runs: |
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=imagick.so" > "${{targets.subpkgdir}}/etc/php/conf.d/imagick.ini"
update:
enabled: true
github:
identifier: Imagick/imagick
use-tag: true
47 changes: 47 additions & 0 deletions php-8.1-opentelemetry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.1-opentelemetry
version: 1.0.1
epoch: 0
description: "OpenTelemetry PHP auto-instrumentation extension"
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ${{package.name}}-config
- php-8.1
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.1
- php-8.1-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/open-telemetry/opentelemetry-php-instrumentation
tag: ${{package.version}}
expected-commit: 7010de909f8fa65ae83ffe3ffa815c82c71842c6
- name: Prepare build
runs: cd ext && phpize
- name: Configure
runs: |
set -x
cd ext
./configure
- name: Make install
runs: |
set -x
cd ext
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=opentelemetry.so" > "${{targets.subpkgdir}}/etc/php/conf.d/opentelemetry.ini"
update:
enabled: true
github:
identifier: open-telemetry/opentelemetry-php-instrumentation
49 changes: 49 additions & 0 deletions php-8.1-swoole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package:
name: php-8.1-swoole
version: 5.1.2
epoch: 0
description: "Coroutine-based concurrency library for PHP"
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ${{package.name}}-config
- php-8.1
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.1
- php-8.1-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/swoole/swoole-src
tag: "v${{package.version}}"
expected-commit: 2dcfef90b3dbcfc08783747ea9abf6ebaf7eedb8
- name: Prepare build
runs: phpize
- name: Configure
runs: |
set -x
./configure
- uses: autoconf/make
- name: Make install
runs: |
set -x
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=swoole.so" > "${{targets.subpkgdir}}/etc/php/conf.d/swoole.ini"
update:
enabled: true
github:
identifier: swoole/swoole-src
strip-prefix: v
tag-filter: v
use-tag: true
47 changes: 47 additions & 0 deletions php-8.2-apcu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.2-apcu
version: 5.1.23
epoch: 0
description: "PHP extension for User Cache"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- php-8.2
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.2
- php-8.2-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/krakjoe/apcu
tag: "v${{package.version}}"
expected-commit: 1b725692b80b4856e8d705a7eda3ac416951aa1f
- name: Prepare build
runs: phpize
- name: Build
runs: |
set -x
./configure
- name: Make install
runs: |
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=apcu.so" > "${{targets.subpkgdir}}/etc/php/conf.d/apcu.ini"
update:
enabled: true
github:
identifier: krakjoe/apcu
strip-prefix: v
tag-filter: v
use-tag: true
47 changes: 47 additions & 0 deletions php-8.2-excimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.2-excimer
version: 1.2.0
epoch: 0
description: "Excimer is a PHP extension that provides an interrupting timer and a low-overhead sampling profiler."
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ${{package.name}}-config
- php-8.2
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.2
- php-8.2-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/wikimedia/mediawiki-php-excimer
tag: "${{package.version}}"
expected-commit: 4cc649be12183c672867e9184d09d7cd9c604d91
- name: Prepare build
runs: phpize
- name: Configure
runs: |
set -x
./configure
- uses: autoconf/make
- name: Make install
runs: |
set -x
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=excimer.so" > "${{targets.subpkgdir}}/etc/php/conf.d/excimer.ini"
update:
enabled: true
github:
identifier: php-excimer/php-excimer
use-tag: true
47 changes: 47 additions & 0 deletions php-8.2-imagick.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: php-8.2-imagick
version: 3.7.0
epoch: 0
description: "PHP extension for ImageMagick"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- imagemagick
- php-8.2
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- imagemagick-dev
- php-8.2
- php-8.2-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/Imagick/imagick
tag: "${{package.version}}"
expected-commit: 52ec37ff633de0e5cca159a6437b8c340afe7831
- name: Prepare build
runs: phpize
- name: Configure
runs: |
set -x
./configure
- name: Make install
runs: |
INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install
subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=imagick.so" > "${{targets.subpkgdir}}/etc/php/conf.d/imagick.ini"
update:
enabled: true
github:
identifier: Imagick/imagick
use-tag: true
Loading

0 comments on commit 0a1021c

Please sign in to comment.