From 11683c4f58c80321342bb1de1b5b6f568dddc20c Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Sun, 26 Jan 2020 21:42:06 +0200 Subject: testing/php7-pecl-uploadprogres: rename from php7-uploadprogress - downgrade because of official release - using github as promary source with tests --- testing/php7-pecl-uploadprogress/APKBUILD | 46 +++++++++++++++++++++++++++++ testing/php7-uploadprogress/APKBUILD | 48 ------------------------------- 2 files changed, 46 insertions(+), 48 deletions(-) create mode 100644 testing/php7-pecl-uploadprogress/APKBUILD delete mode 100644 testing/php7-uploadprogress/APKBUILD (limited to 'testing') diff --git a/testing/php7-pecl-uploadprogress/APKBUILD b/testing/php7-pecl-uploadprogress/APKBUILD new file mode 100644 index 00000000000..09b407e641a --- /dev/null +++ b/testing/php7-pecl-uploadprogress/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Andy Postnikov +# Maintainer: Andy Postnikov + +pkgname=php7-pecl-uploadprogress +_pkgreal=uploadprogress +pkgver=1.1.2 +pkgrel=0 +pkgdesc="An extension to track progress of a file upload for PHP" +url="https://pecl.php.net/package/uploadprogress" +arch="all" +license="PHP-3.01" +depends="php7-common" +makedepends="php7-dev re2c" +subpackages="$pkgname-doc::noarch" +source="$pkgname-$pkgver.tar.gz::https://github.com/php/pecl-php-uploadprogress/archive/uploadprogress-$pkgver.tar.gz" +builddir="$srcdir/pecl-php-uploadprogress-uploadprogress-$pkgver" +provides="php7-uploadprogress=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-uploadprogress" # for backward compatibility + +build() { + phpize7 + ./configure \ + --prefix=/usr \ + --with-php-config=php-config7 + make +} + +check() { + php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test +} + +package() { + local confdir="$pkgdir/etc/php7/conf.d" + + 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="2f613f068a416c9244d57afa340c205c172d1b7d20f061bcb76d946e65318795bd3a1ba8536550e171e7b454cc00430a5965e7b36294487af6c34a5ba95cb287 php7-pecl-uploadprogress-1.1.2.tar.gz" diff --git a/testing/php7-uploadprogress/APKBUILD b/testing/php7-uploadprogress/APKBUILD deleted file mode 100644 index 62f9eee8fea..00000000000 --- a/testing/php7-uploadprogress/APKBUILD +++ /dev/null @@ -1,48 +0,0 @@ -# Contributor: Andy Postnikov -# Maintainer: Andy Postnikov - -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" -- cgit v1.2.3