summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e32575ac407846006821a4c020ea017e29d4fafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Roman Seleznev <alone.inbox@gmail.com>
# This PKGBUILD is maintained at https://github.com/TechCatOther/aur-packages


pkgbase=aps-php-runtime
pkgname=('aps-php-runtime')
pkgdesc='Parallels APS PHP Runtime'
pkgver=7.2
subversion=106
pkgrel=2
arch=('any')
url='https://doc.apsstandard.org/7.3/resources/tools/php-lib/#php-runtime'
license=('custom')
replaces=('aps-php-runtime')
conflicts=('aps-php-runtime')
provides=('aps-php-runtime')
depends=('php>=7.2')
optdepends=()
makedepends=()

source=("http://download.apsstandard.org/php.runtime/aps-php-runtime-${pkgver}-${subversion}.zip")
md5sums=(068e7ee0cc6d1f31b870f087e0c04227)

prepare() {
    echo 'indule_path = ${include_path}:/usr/share/aps/php' > ${srcdir}/aps.ini
}

package() {
   mkdir -p ${pkgdir}/usr/share/aps/php/aps/2/{formats,types}
   install -D -m644 -t ${pkgdir}/usr/share/aps/php/aps/2/ ${srcdir}/aps/2/*.php 
   install -D -m644 -t ${pkgdir}/usr/share/aps/php/aps/2/formats/ ${srcdir}/aps/2/formats/*.php
   install -D -m644 -t ${pkgdir}/usr/share/aps/php/aps/2/types/ ${srcdir}/aps/2/types/*.php 
   install -D -m644 -t ${pkgdir}/etc/php/conf.d/ ${srcdir}/aps.ini
}

# vim:set ts=4 sw=4 et: