+ if test "$(PECL_VERSION)" = "master"; then \
+ if test -d $(PECL_DIR); then \
+ cd $(PECL_DIR); \
+ git pull; \
+ else \
+ git clone -b $(PECL_VERSION) \
+ $$(dirname $$(git remote get-url $$(git remote)))/$(PECL_EXTENSION) $(PECL_DIR); \
+ fi; \
+ else \
+ mkdir -p $(PECL_DIR); \
+ curl -LSs $(PECL_MIRROR)/$(PECL_EXTENSION)$(if $(PECL_VERSION),/$(PECL_VERSION)) \
+ | tar xz --strip-components 1 -C $(PECL_DIR); \
+ fi