blob: 8341bb12018aa92d77d0ba979a868fe29295f6bc (
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
|
# Maintainer: Markus Hansmair <archlinux at zendro dot de>
# Contributor: Massimiliano Torromeo <massimiliano dot torromeo at gmail dot com>
pkgname=php-legacy-yaml
_extname=yaml
pkgver=2.2.3
pkgrel=2
pkgdesc="Support for YAML 1.1 (YAML Ain't Markup Language) serialization using the LibYAML library."
arch=('x86_64')
url="https://bd808.com/pecl-file_formats-yaml/"
license=('MIT')
depends=('php-legacy' 'libyaml')
backup=("etc/php-legacy/conf.d/$_extname.ini")
source=("https://pecl.php.net/get/$_extname-$pkgver.tgz")
sha256sums=('5937eb9722ddf6d64626799cfa024598ff2452ea157992e4e67331a253f90236')
build() {
cd "$srcdir/$_extname-$pkgver"
phpize-legacy
./configure
make
}
package() {
cd "$srcdir/$_extname-$pkgver"
install -m0755 -d "$pkgdir/etc/php-legacy/conf.d/"
install -m0644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
echo ";extension=$_extname" > "$pkgdir/etc/php-legacy/conf.d/$_extname.ini"
chmod 0644 "$pkgdir/etc/php-legacy/conf.d/$_extname.ini"
install -m0755 -D ".libs/$_extname.so" "$pkgdir$(php-config-legacy --extension-dir)/$_extname.so"
}
|