diff options
author | Leo | 2020-08-27 13:54:00 +0800 |
---|---|---|
committer | Leo | 2020-12-20 11:39:07 +0800 |
commit | b27cdef6d7e262da8912617c7bf4478d4d3a7ab3 (patch) | |
tree | 9bf29c0b0938151999f3a91796e80ed9b545708d | |
download | aur-b27cdef6d7e262da8912617c7bf4478d4d3a7ab3.tar.gz |
Initial upstream version: 1.1.0
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e422a34b8698 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = php-uuid + pkgdesc = PHP PECL UUID extension + pkgver = 1.1.0 + pkgrel = 1 + url = https://pecl.php.net/package/uuid + arch = x86_64 + license = LGPL + depends = php>=7.0 + source = http://pecl.php.net/get/uuid-1.1.0.tgz + sha256sums = 981c1c2fec77aaffec29242c29a346bc6ec2115053e9b6b5afb4a4e149a2333f + +pkgname = php-uuid + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d063594f9226 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Leo <i@setuid0.dev> + +_extname=uuid +pkgname="php-$_extname" +pkgver='1.1.0' +pkgrel='1' +pkgdesc='PHP PECL UUID extension' +arch=('x86_64') +url="https://pecl.php.net/package/$_extname" +license=('LGPL') +depends=('php>=7.0') +source=("http://pecl.php.net/get/$_extname-$pkgver.tgz") +sha256sums=('981c1c2fec77aaffec29242c29a346bc6ec2115053e9b6b5afb4a4e149a2333f') + +build() { + cd "$srcdir/$_extname-$pkgver" + phpize + ./configure \ + --prefix=/usr \ + --with-uuid + make + echo -ne "n" | make test + echo -ne "\n" + echo "extension=$_extname" > $_extname.ini +} + +package() { + pushd "$srcdir/$_extname-$pkgver" + make INSTALL_ROOT="$pkgdir" install + install -Dm644 $_extname.ini "$pkgdir/etc/php/conf.d/$_extname.ini" + popd +} |