upstream_archive = mplus-TESTFLIGHT-$(OPK_SOURCE_VERSION_UPSTREAM).tar.xz upstream_url = http://dl.sourceforge.jp/mplus-fonts/6650/$(upstream_archive) source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 $(source_archive): wget -c '$(upstream_url)' tar -xJf '$(upstream_archive)' rm -f '$(upstream_archive)' tar -cjf '$(source_archive)' \ 'mplus-TESTFLIGHT-$(OPK_SOURCE_VERSION_UPSTREAM)' mv 'mplus-TESTFLIGHT-$(OPK_SOURCE_VERSION_UPSTREAM)' 'src' source: $(source_archive)