forked from alpinelinux/aports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing/php7-uploadprogress: new aport
Proposed 2.0.0 release php/pecl-php-uploadprogress#3
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Contributor: Andy Postnikov <[email protected]> | ||
# Maintainer: Andy Postnikov <[email protected]> | ||
|
||
pkgname=php7-uploadprogress | ||
_pkgreal=uploadprogress | ||
pkgver=2.0.0 | ||
pkgrel=0 | ||
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" |