summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea6b0e67e52dbacf913d102c7e9836ec4e8f0fe2 (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: adlerweb <aur at adlerweb dot info>#Maintainer: 

pkgname=php-dio
pkgver=0.2.1
pkgrel=1
pkgdesc="POSIX direct I/O functions for PHP"
arch=('i686' 'x86_64')
url="http://pecl.php.net/package/dio"
license=('PHP')
depends=('php')
makedepends=('autoconf')
source=(http://pecl.php.net/get/dio-${pkgver}.tgz)
sha512sums=('ed40ae3a950410e65a15c893a90d16da7f152c73e92623b68706b942c42f27e01a799134cb4b464d09f6e99c35d80e634ba662a20c7c9bc7f27ca2515c392abf')

build() {
  cd ${srcdir}/dio-${pkgver}
  phpize || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
}

package() {
  cd ${srcdir}/dio-${pkgver}
  make INSTALL_ROOT=${pkgdir} install || return 1
  echo 'extension=dio.so' > dio.ini
  install -D -m644 dio.ini "${pkgdir}/etc/php/conf.d/dio.ini"
  install -D -m644 LICENSE "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}