[steamcmd] 03/05: provide a get-orig-source rule that replicate my manual steps
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sun Dec 13 08:44:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository steamcmd.
commit 753e267f82bb6ae60ffad427d39bb30d5c1fd9c1
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Dec 13 09:42:14 2015 +0100
provide a get-orig-source rule that replicate my manual steps
---
debian/rules | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/debian/rules b/debian/rules
index cbe925d..7444fb3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,27 @@
#!/usr/bin/make -f
+
+MIRROR=http://media.steampowered.com/client
+#MIRROR=http://localhost
+
%:
dh $@
+
+get-orig-source:
+ rm -rf dest/
+ # this can't use uscan as package isn't versioned at all
+ mkdir -p dest/tmp
+ cd dest/tmp ; wget $(MIRROR)/steamcmd_linux.tar.gz
+ tar xf dest/tmp/steamcmd_linux.tar.gz -C dest/tmp
+ mv dest/tmp/steamcmd.sh dest/
+ mv dest/tmp/linux32/steamcmd dest/
+ # ignore libstdc++.so.6 and maybe futurer other stuff
+ rm -rf dest/tmp
+ find dest -ls
+ # version number = main binary timestamp
+ version=0~$$(date -r dest/steamcmd +%Y%m%d) ; \
+ dest=../steamcmd-$$version.orig ; \
+ orig=../steamcmd_$$version.orig.tar.xz ; \
+ mv dest $$dest ; \
+ tar cJf $$orig $$dest ; \
+ rm -rf $$dest ; \
+ echo "Successfully created new upstream source file: $$orig"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/steamcmd.git
More information about the Pkg-games-commits
mailing list