Skip to content

Commit

Permalink
redeclipse-data: 1.5.3-1~getdeb1
Browse files Browse the repository at this point in the history
  * New upstream version
  • Loading branch information
ckorn committed Aug 11, 2015
1 parent c8552d8 commit 6082eba
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 13 deletions.
6 changes: 6 additions & 0 deletions redeclipse-data/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
redeclipse-data (1.5.3-1~getdeb1) trusty; urgency=medium

* New upstream version

-- Christoph Korn <christoph.korn@getdeb.net> Mon, 10 Aug 2015 23:44:56 +0200

redeclipse-data (1.5.2-1~getdeb2) trusty; urgency=medium

[ Martin Erik Werner ]
Expand Down
5 changes: 3 additions & 2 deletions redeclipse-data/redeclipse-data.install
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
34 changes: 26 additions & 8 deletions redeclipse-data/rules
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)"
5 changes: 2 additions & 3 deletions redeclipse-data/watch
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

0 comments on commit 6082eba

Please sign in to comment.