blob: 85e2ef920402454f91408e2a81e8c0de61b766c4 (
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
|
#Maintainer: Anthony Ruhier <anthony.ruhier@gmail.com>
_pkgname=net-ipv6
pkgname=php-$_pkgname
pkgver=1.3.0b4
pkgrel=1
pkgdesc="Check and validate IPv6 addresses"
arch=("any")
url="https://pear.php.net/package/Net_IPv6/"
license=("PHP")
depends=("php>=5.4.0")
makedepends=("php-pear")
options=("!strip" "!emptydirs")
source=("http://download.pear.php.net/package/Net_IPv6-${pkgver}.tgz")
sha256sums=('ec676dc81c54e02f11b7162fffdf6f5211d25d5d7a00e21a7ded6b0042c9f61b')
package() {
cd "${srcdir}"
local _PEARDIR="${pkgdir}/usr/share/pear"
local _PEAROPTS=(-D php_dir="${_PEARDIR}" -D doc_dir="${_PEARDIR}/doc")
local _PEAROPTS+=(-D test_dir="${_PEARDIR}/test")
local _PEAROPTS+=(-D data_dir="${_PEARDIR}/data")
pear "${_PEAROPTS[@]}" install -O -n "Net_IPv6-${pkgver}.tgz"
rm -r "${_PEARDIR}"/{.channels,.depdb*,.filemap,.lock,.registry}
}
|