| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
override_dh_installdocs: |
| 11 |
head -n 42 README | tail -n 16 > Changelog |
| 12 |
dh_installdocs |
| 13 |
|
| 14 |
DPATH := $(abspath $(dir $(MAKEFILE_LIST))) |
| 15 |
DTYPE := +dfsg |
| 16 |
PKG := brainparty |
| 17 |
VER ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}') |
| 18 |
.PHONY: get-orig-source |
| 19 |
get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz |
| 20 |
@ |
| 21 |
|
| 22 |
$(PKG)_$(VER)$(DTYPE).orig.tar.xz: |
| 23 |
@echo "# Downloading..." |
| 24 |
uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(DPATH) |
| 25 |
@echo "# Extracting..." |
| 26 |
mkdir $(PKG)-$(VER) \ |
| 27 |
&& tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \ |
| 28 |
|| $(RM) -r $(PKG)-$(VER) |
| 29 |
@echo "# Clean-up..." |
| 30 |
cd $(PKG)-$(VER) \ |
| 31 |
&& $(RM) -r -v \ |
| 32 |
Content/morningwave.ogg \ |
| 33 |
Content/highway.ogg \ |
| 34 |
Content/nevertoolate.ogg \ |
| 35 |
Content/chekolake.ogg \ |
| 36 |
Content/starmarch.ogg \ |
| 37 |
Content/ambient.ogg \ |
| 38 |
Content/brainrace.ogg \ |
| 39 |
Content/lively.ogg \ |
| 40 |
Content/professor.ogg \ |
| 41 |
Content/results.ogg \ |
| 42 |
Content/theme.ogg \ |
| 43 |
Content/*.ttf |
| 44 |
@echo "# Correcting permissions..." |
| 45 |
chmod a-x $(PKG)-$(VER)/Content/* |
| 46 |
@echo "# Packing..." |
| 47 |
tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" "$(PKG)-$(VER)" \ |
| 48 |
&& $(RM) -r "$(PKG)-$(VER)" |