1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 01:05:15 +03:00
aports/testing/php7-libvirt-php/APKBUILD

41 lines
1.4 KiB
Text

# 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"