-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New upstream version
- Loading branch information
Showing
4 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
fonts/*.png usr/share/games/redeclipse/data/fonts | ||
fonts/*.cfg usr/share/games/redeclipse/config/fonts | ||
fonts/*.png usr/share/games/redeclipse/data/fonts | ||
fonts/*.cfg usr/share/games/redeclipse/config/fonts | ||
data usr/share/games/redeclipse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,43 @@ | ||
#!/usr/bin/make -f | ||
|
||
# using the first word here because of the include MAKEFILE_LIST contains more than one path | ||
PKD = $(abspath $(dir $(word 1, $(MAKEFILE_LIST)))) | ||
PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog -SSource) | ||
VER = $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1) | ||
|
||
DPKG_EXPORT_BUILDFLAGS = 1 | ||
include /usr/share/dpkg/default.mk | ||
|
||
%: | ||
dh $@ --parallel | ||
|
||
override_dh_auto_build: | ||
rm -rf data/fonts | ||
mkdir -p fonts | ||
cd fonts/ && \ | ||
cube2font /usr/share/fonts/truetype/play/Play-Bold.ttf \ | ||
play 4 15 1 1 54 54 512 512 0 0 fonts/ | ||
|
||
override_dh_auto_install: | ||
mkdir -p debian/redeclipse-data/usr/share/games/redeclipse/data | ||
find . -mindepth 1 -maxdepth 1 -type d \ | ||
-not \( -name '.git*' -or -name 'debian' -or -name 'fonts' \) \ | ||
-exec cp -r '{}' debian/redeclipse-data/usr/share/games/redeclipse/data \; | ||
|
||
override_dh_builddeb: | ||
dh_builddeb -- -Zxz | ||
|
||
get-orig-source: | ||
uscan --noconf --rename --repack --compression xz --force-download --download-current-version --destdir=. | ||
## http://wiki.debian.org/onlyjob/get-orig-source | ||
.PHONY: get-orig-source | ||
get-orig-source: $(PKG)_$(VER).orig.tar.xz $(info I: $(PKG)_$(VER)) | ||
@ | ||
|
||
UURL = https://github.com/red-eclipse/base.git | ||
$(PKG)_$(VER).orig.tar.xz: $(info I: $(PKG)_$(VER)) | ||
$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..)) | ||
@echo "# Downloading..." | ||
git clone $(UURL) $(PKG)-$(VER) \ | ||
|| $(RM) -r $(PKG)-$(VER) | ||
cd $(PKG)-$(VER) \ | ||
&& git checkout v$(VER) && git submodule init && git submodule update \ | ||
&& echo "# Cleaning-up..." \ | ||
&& ( find data/ -name .git -type d -exec rm -rf {} \; || /bin/true ) \ | ||
&& find data/ -iname ".git*" -type f -delete | ||
@echo "# Packing..." | ||
find -L "$(PKG)-$(VER)/data" -xdev -type f -print | LC_ALL=C sort \ | ||
| XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \ | ||
&& $(RM) -r "$(PKG)-$(VER)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version=3 | ||
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/redeclipse-data-$1\.tar\.gz/,\ | ||
dversionmangle=s/\+ds\d*$// \ | ||
https://github.com/red-eclipse/data/tags .*/v?(\d\S*)\.tar\.gz | ||
https://github.com/red-eclipse/base/releases \ | ||
(?:.*/)?archive/v([\d\.]+)\.tar\.gz |