Skip to content

Commit

Permalink
testing/php7-uploadprogress: new aport
Browse files Browse the repository at this point in the history
Proposed 2.0.0 release php/pecl-php-uploadprogress#3
  • Loading branch information
andypost committed Mar 31, 2019
1 parent 7caa2a1 commit 674ff80
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions testing/php7-uploadprogress/APKBUILD
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"

0 comments on commit 674ff80

Please sign in to comment.