blob: 0f2abc656bebe15c17f484b60ba8491ca83a20c9 (
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
38
39
40
41
|
# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
pkgname=php7-libvirt-php
pkgver=0.5.4
pkgrel=1
pkgdesc="PHP language bindings for Libvirt API. For more details see: http://www.libvirt.org/php/"
url="https://libvirt.org/php/"
arch="all !x86 !armhf !armv7 !aarch64" # missing deps on armv7, segfault on x86, armhf and aarch64
license="LGPL-2.1"
makedepends="autoconf libvirt-dev libxml2-dev libxml2-utils libxslt php7-dev php7-pecl-imagick libtool linux-headers"
subpackages="$pkgname-doc"
source="http://libvirt.org/sources/php/libvirt-php-$pkgver.tar.gz
musl-fixes.patch"
builddir="$srcdir/libvirt-php-$pkgver"
prepare() {
cd "$builddir"
default_prepare
autoconf
}
build() {
cd "$builddir"
./configure --prefix=/usr
make
}
check() {
cd "$builddir"
php7 --no-php-ini --define extension=src/.libs/libvirt-php.so --modules | grep libvirt
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
rm "$pkgdir/usr/lib/php7/modules/libvirt-php.la"
}
sha512sums="b5b204549e6810668203d1df8404a5cb71f646ae7e01ea223c6e9b9eec9b1f6500cc5bb4559859959d821a213ff992f22a97e4b683da2c683be3732710943487 libvirt-php-0.5.4.tar.gz
732f22ca206187b7a0ea41fe2d63808c8afc0994f941fbbb933dbde219f597d108aa3ed10b67e074fe90ac6ab571ee0dc70ef725ce8ed746d8f6e4689e972291 musl-fixes.patch"
|