diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2011-10-19 10:56:37 +0200 |
---|---|---|
committer | Alessandro Ghedini <al3xbio@gmail.com> | 2011-10-19 11:45:57 +0200 |
commit | da9ceea73743c438a43d13d52c6a5e36bcf2e103 (patch) | |
tree | 5e68651e022c6c1b1c1d4ff93cb0c13ab560878d /debian/rules | |
parent | 6451a495637c6e3047a5a56573cffc6e3de9a515 (diff) |
Initial Debianization
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0d9acdd --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +PKG=gnome-pie +REM=git://github.com/Simmesimme/Gnome-Pie.git +REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]git(.*)-.*,\1,p') +VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install + # install invalid locale pt-br as pt_BR (fix unknown-locale-code) + mv debian/$(PKG)/usr/share/locale/pt-br \ + debian/$(PKG)/usr/share/locale/pt_BR + +get-orig-source: + rm -rf $(PKG)-$(VER).orig + git clone $(REM) $(PKG)_$(VER).orig + cd $(PKG)_$(VER).orig && git checkout $(REV) + rm -r $(PKG)_$(VER).orig/.git $(PKG)_$(VER).orig/.gitignore + GZIP=--best tar -cz --owner root --group root --mode a+rX \ + -f $(PKG)_$(VER).orig.tar.gz \ + $(PKG)_$(VER).orig + rm -r $(PKG)_$(VER).orig |