When you have a package name which is different from the directory name
created when extracting the source files (Say, php is different from php-imagick)
you can set the WORKSRC to the correct name in config.mk because otherwise iztaci.gar
would assume it is named $(GARNAME)-$(GARVERSION).

Most of the time something simple like the following will do:

WORKSRC=$(WORKDIR)/php-$(GARVERSION)

If you want or need you might use separate variables for the
original name and version of the source package. Maybe when
the GAR package version is also different to the original
source version (For and example see the 'bind' package and also
read tip_origversion_with_hyphen.txt in this same directory):


## Configuration options for php5-imagick ##

# Original package info
ORIGVERSION = 3.1.2
ORIGNAME = imagick

# Working source directory
# (We set it explicitly because it's different from DISTNAME
WORKSRC=$(WORKDIR)/$(ORIGNAME)-$(ORIGVERSION)

-------------------------------------------

Alternative (obsolete) way:

In Makefile use a pre-configure rule:

#pre-configure:
#	@if [ -d $(WORKDIR)/zabbix-$(GARVERSION) ]; then \
#	   rm -r $(WORKDIR)/$(DISTNAME);                \
#	   mv -v $(WORKDIR)/zabbix-$(GARVERSION) $(WORKDIR)/$(DISTNAME); \
#	fi

