1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/php7-pecl-uuid/APKBUILD
2022-04-23 00:46:05 +03:00

35 lines
1.1 KiB
Text

# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-uuid
_extname=uuid
pkgver=1.2.0
pkgrel=0
pkgdesc="A wrapper around libuuid from the ext2utils project."
url="https://pecl.php.net/package/uuid"
arch="all"
license="LGPL-2.1-or-later"
depends="php7-common"
makedepends="php7-dev util-linux-dev"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-uuid=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-uuid" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname.so" > $_confdir/50_$_extname.ini
}
sha512sums="bd557823a8c2b78f74675a2554445eafc69193c6fe5af1f9435cdd90a8efdec0d3974ae8af759fe7d30b2f805876fc2ef55058dea245c9d89a792f634fdb0a10 php7-pecl-uuid-1.2.0.tgz"