summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a67a278ecdfdd73d6790981844d9f1c394c33f6 (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=php-raphf
pkgver=2.0.1
pkgrel=1
pkgdesc="A reusable split-off of pecl_http's persistent handle and resource factory API"
arch=('i686' 'x86_64')
license=('BSD')
url="https://mdref.m6w6.name/raphf"
depends=('php')
backup=('etc/php/conf.d/raphf.ini')
source=("https://pecl.php.net/get/raphf-${pkgver}.tgz")
sha512sums=('0a609fc21a62880963e7afb75297eb75a2598aab2c816cb61e84d665b0453e4952aa9bf25fe2c818cc94492a4b94aed965053c67899fdb984d88661364fffb1e')

build() {
  cd "${srcdir}/raphf-${pkgver}"

  phpize
  ./configure
  make
}

package() {
  cd "${srcdir}/raphf-${pkgver}"

  make install INSTALL_ROOT="${pkgdir}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  echo "extension=raphf.so" > raphf.ini
  install -Dm644 "raphf.ini" "${pkgdir}/etc/php/conf.d/raphf.ini"
}