mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
|
|
pkgname=php7-uploadprogress
|
|
_pkgreal=uploadprogress
|
|
pkgver=2.0.0
|
|
pkgrel=1
|
|
pkgdesc="An extension to track progress of a file upload for PHP"
|
|
url="https://github.com/php/pecl-php-uploadprogress"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
depends="php7-common"
|
|
makedepends="php7-dev autoconf"
|
|
subpackages="$pkgname-doc::noarch"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/skilld-labs/pecl-php-uploadprogress/archive/$_pkgreal-$pkgver.tar.gz"
|
|
builddir="$srcdir/pecl-php-uploadprogress-$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
echo $builddir
|
|
phpize7
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
|
|
}
|
|
|
|
package() {
|
|
local confdir="$pkgdir/etc/php7/conf.d"
|
|
cd "$builddir"
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
mkdir -p "$confdir"
|
|
echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
|
|
cp -r examples/* \
|
|
"$pkgdir"/usr/share/doc/$pkgname/examples/
|
|
}
|
|
|
|
sha512sums="5b7596732f564d4ce68c760aacb650c1425896bc4ea57d47e5d14c985a30e0bfe4355b4e8def53303b5011f6dfe324e4e96ee9687397b5f28ac57ec55682ad09 php7-uploadprogress-2.0.0.tar.gz"
|