aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-oauth/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/php7-oauth/APKBUILD')
-rw-r--r--community/php7-oauth/APKBUILD22
1 files changed, 12 insertions, 10 deletions
diff --git a/community/php7-oauth/APKBUILD b/community/php7-oauth/APKBUILD
index f780fd8e5b..3cd79a59a8 100644
--- a/community/php7-oauth/APKBUILD
+++ b/community/php7-oauth/APKBUILD
@@ -3,30 +3,32 @@
pkgname=php7-oauth
_pkgreal=oauth
pkgver=2.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="OAuth is an authorization protocol built on top of HTTP."
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
-makedepends="php7-dev autoconf pcre-dev"
-install=""
-subpackages=""
+makedepends="php7-dev autoconf pcre-dev curl-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-
builddir="$srcdir"/$_pkgreal-$pkgver
build() {
cd "$builddir"
- phpize7 || return 1
- ./configure --prefix=/usr --with-php-config=php-config7 || return 1
- make || return 1
+ phpize7
+ ./configure --prefix=/usr --with-php-config=php-config7
+ make
+}
+
+check() {
+ cd "$builddir"
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
cd "$builddir"
- make INSTALL_ROOT="$pkgdir"/ install || return 1
- install -d "$pkgdir"/etc/php7/conf.d || return 1
+ make INSTALL_ROOT="$pkgdir"/ install
+ install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/60_$_pkgreal.ini
}