blob: a5730ce819c17a505566cd748c29bb864e255101 (
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: Michael Gwin <oksijun+arch at gmail dot com>
pkgname=php-jsonreader-git
pkgver=r38.c829b3b
pkgrel=1
pkgdesc="A JSON pull-parser extension for PHP based on libvktor"
arch=("i686" "x86_64")
url="https://github.com/shevron/ext-jsonreader"
license=('PHP')
depends=("php")
source=("${pkgname}::git+https://github.com/shevron/ext-jsonreader.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${srcdir}/${pkgname}
phpize
./configure --prefix=/usr --enable-shared
make
}
package() {
cd ${srcdir}/${pkgname}
make install INSTALL_ROOT="${pkgdir}"
}
|