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 32 33 34 35 36 37 38 39 40 41
|
PKG_VER = 20150712
MULTI_SRC := \
migmix-1m-$(PKG_VER).zip \
migmix-1p-$(PKG_VER).zip \
migmix-2m-$(PKG_VER).zip \
migmix-2p-$(PKG_VER).zip \
migu-1c-$(PKG_VER).zip \
migu-1m-$(PKG_VER).zip \
migu-1p-$(PKG_VER).zip \
migu-2m-$(PKG_VER).zip
%:
dh $@
override_dh_install:
cat $(CURDIR)/debian/install.in \
| sed -e 's/VERSION/$(PKG_VER)/g' \
> $(CURDIR)/debian/install
dh_install
chmod 644 $(CURDIR)/debian/fonts-migmix/usr/share/fonts/truetype/migmix/*.ttf
override_dh_auto_clean:
dh_auto_clean
rm -f $(CURDIR)/debian/install
get-orig-source:
mkdir -p $(CURDIR)/../fonts-migmix_$(PKG_VER)
uscan --watchfile=debian/watch --no-symlink --download-current-version
( cd $(CURDIR)/../ && \
for f in $(MULTI_SRC) ; do \
unzip $$f -d fonts-migmix_$(PKG_VER) ;\
done ; \
tar cvf fonts-migmix_$(PKG_VER).orig.tar fonts-migmix_$(PKG_VER)/ ; \
rm -f fonts-migmix_$(PKG_VER).orig.tar.xz ;\
xz --best fonts-migmix_$(PKG_VER).orig.tar ;\
rm -fr fonts-migmix_$(PKG_VER) $(MULTI_SRC) ;\
)
|