Skip to content
Snippets Groups Projects
Commit 377d3f79 authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php7-pecl-uuid: modernize, fix license, add missing dependency

parent d6c864da
No related branches found
No related tags found
No related merge requests found
...@@ -3,34 +3,29 @@ ...@@ -3,34 +3,29 @@
pkgname=php7-pecl-uuid pkgname=php7-pecl-uuid
_pkgreal=uuid _pkgreal=uuid
pkgver=1.1.0 pkgver=1.1.0
_pkgver=${pkgver} pkgrel=1
pkgrel=0
pkgdesc="A wrapper around libuuid from the ext2utils project." pkgdesc="A wrapper around libuuid from the ext2utils project."
url="https://pecl.php.net/package/$_pkgreal" url="https://pecl.php.net/package/uuid"
arch="all" arch="all"
license="PHP" license="LGPL-2.1-or-later"
depends="" depends="php7-common"
pecldepends="php7-dev autoconf util-linux-dev" makedepends="php7-dev autoconf re2c util-linux-dev"
makedepends="$pecldepends" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$_pkgver"
provides="php7-uuid=$pkgver-r$pkgrel" # for backward compatibility provides="php7-uuid=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-uuid" # for backward compatibility replaces="php7-uuid" # for backward compatibility
build() { build() {
cd "$builddir"
phpize7 phpize7
./configure --prefix=/usr --with-php-config=php-config7 ./configure --prefix=/usr --with-php-config=php-config7
make make
} }
check() { check() {
cd "$builddir"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
} }
package() { package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir"/ install make INSTALL_ROOT="$pkgdir"/ install
install -d "$pkgdir"/etc/php7/conf.d install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment