summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23d6026733d91d825113f85cf88a833ec3a00d5a (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
# Maintainer:  Javier Torres <javitonino [at] gmail [dot] com>
# Contributor: max-k <max-k AT post DOT com>

pkgname=pear-http-request2
_pkgname=HTTP_Request2
pkgver=2.2.1
pkgrel=2
pkgdesc='Provides an easy way to perform HTTP requests.'
arch=('any')
url="http://pear.php.net/package/${_pkgname}"
license=('BSD3')
depends=('php>=5.2.0' 'pear-net-url2>=2.0.0' 'php-pear>=1.9.2')
makedepends=()
options=('!strip')
install="${pkgname}.install"
noextract=(${_pkgname}-${pkgver}.tgz)
source=(http://download.pear.php.net/package/${_pkgname}-${pkgver}.tgz
        pear-http-request2.install)
md5sums=('36c8406b0d95bbdec54ad0fdafa73d00'
         'bd7b8d4499b021db6d181faf3893c76b')

package() {
  cd ${srcdir}
  local _PEARDIR="${pkgdir}/usr/share/pear"
  local _PEAROPTS="-D php_dir=${_PEARDIR} -D doc_dir=${_PEARDIR}/doc"
  local _PEAROPTS="${_PEAROPTS} -D test_dir=${_PEARDIR}/test"
  local _PEAROPTS="${_PEAROPTS} -D data_dir=${_PEARDIR}/data"
  pear ${_PEAROPTS} install -O -n ${_pkgname}-${pkgver}.tgz
  rm -r ${_PEARDIR}/{.channels,.depdb*,.filemap,.lock,.registry/.chan*}
}