summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1bb209f5cb79dfd93ce97646bcf0c3a2aa6738b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Leo <i@setuid0.dev>

_extname=uuid
pkgname=php-$_extname
pkgver=1.2.0
pkgrel=2
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=('5cb834d32fa7d270494aa47fd96e062ef819df59d247788562695fd1f4e470a4')

build() {
    cd $srcdir/$_extname-$pkgver
	echo "extension=$_extname" > $_extname.ini
    phpize
    ./configure \
    --prefix=/usr \
    --with-uuid
    make
}

check() {
	cd $srcdir/$_extname-$pkgver
	NO_INTERACTION=1 make test
}

package() {
    cd $srcdir/$_extname-$pkgver
    make INSTALL_ROOT=$pkgdir install
    install -Dm644 $_extname.ini $pkgdir/etc/php/conf.d/$_extname.ini
}