summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 674e05a4656d342509a9070f9d2586c740d326a0 (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
# Maintainer: Luke Arms <luke@arms.to>

pkgname=php-memprof
_extname=${pkgname#php-}
pkgver=3.0.2
pkgrel=2
pkgdesc='Memory profiler for PHP. Helps finding memory leaks in PHP scripts.'
arch=('x86_64')
url='https://github.com/arnaud-lb/php-memory-profiler'
license=('MIT')
depends=('php' 'judy')
source=("http://pecl.php.net/get/${_extname}-${pkgver}.tgz")
sha256sums=('510bf09d58487820ac11b617446199ca86c50fda972dde73feaae667be23d183')
backup=("etc/php/conf.d/$_extname.ini")

build() {
    cd "$srcdir/$_extname-$pkgver"
    phpize
    ./configure --prefix=/usr
    make
}

package() {
    cd "$srcdir/$_extname-$pkgver"
    make INSTALL_ROOT="$pkgdir" install
    echo ";extension=$_extname.so" >"$srcdir/$_extname.ini"
    install -Dm0644 "$srcdir/$_extname.ini" "$pkgdir/etc/php/conf.d/$_extname.ini"
    install -Dm0644 "$srcdir/$_extname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}