summaryrefslogtreecommitdiff
path: root/config/projects/php.rb
blob: 1ad2c49bae7c22f0c464c7539bc82ede7d7a4f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

php_version = ENV.fetch('PHP_VERSION', '7.4.8')

name "php-#{php_version}"
maintainer "GitLab B.V."
homepage "https://www.php.net/"

install_dir "/opt/asdf/installs/php/#{php_version}"
package_scripts_path Pathname.pwd.join("config/scripts/php")

build_version php_version
build_iteration 1

override 'asdf_php', version: php_version
dependency "asdf_php"

package :deb do
  compression_level 9
  compression_type :xz
end