[Pkg-privacy-commits] [torbrowser-launcher] 07/476: added package building instructions and a build script

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit 321de6a1fef241d77c1ea2f55ee36f7acc07bc60
Author: Micah Lee <micahflee at riseup.net>
Date:   Thu Feb 7 00:14:05 2013 -0800

    added package building instructions and a build script
---
 README               | 30 ++++++++++++++++++++++++++++++
 build_and_install.sh | 21 +++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/README b/README
index 51eaf14..d518ffd 100644
--- a/README
+++ b/README
@@ -6,3 +6,33 @@ Tor Browser Launcher is intended to make the Tor Browser Bundle (TBB) easier to
 When you first launch Tor Browser Launcher, it will download TBB from https://www.torproject.org/ and extract it in ~/.torproject, and then execute it. When you run it after that it will just execute TBB.
 
 Tor Browser Launcher will get updated each time a new version of TBB is released. When you open Tor Browser after an update, it will download the newer version of TBB for you and extract it over your old TBB directory in ~/.torproject, so you will maintain your TBB bookmarks. 
+
+Building a Debian package
+=========================
+
+You need to have stdeb installed. If you're using Debian or Ubuntu you can install it like this:
+
+  sudo apt-get install python-stdeb
+
+Here are other things you might need:
+
+  sudo apt-get install build-essential dpkg-dev debhelper devscripts fakeroot cdbs
+
+First build a source distribution:
+
+  python setup.py sdist
+
+Turn it into a Debian source package:
+
+  cd dist
+  py2dsc torbrowser-launcher-2.3.25-2-1.tar.gz
+
+Turn it into a Debian binary package:
+
+  cd deb_dist/torbrowser-launcher-2.3.25-2-1
+  dpkg-buildpackage -rfakeroot -uc -us
+
+Once you've made a .deb, you can install it like this:
+
+  sudo dpkg -i python-torbrowser-launcher_2.3.25-2-1-1_all.deb
+
diff --git a/build_and_install.sh b/build_and_install.sh
new file mode 100755
index 0000000..c400dc0
--- /dev/null
+++ b/build_and_install.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# clean up from last time
+rm -rf ~/.torbrowser
+
+# build source dist
+python setup.py sdist
+
+# turn it into a debian source package
+cd dist
+py2dsc torbrowser-launcher-2.3.25-2-1.tar.gz
+
+# turn it into a debian binary package
+cd deb_dist/torbrowser-launcher-2.3.25-2-1
+dpkg-buildpackage -rfakeroot -uc -us
+
+# install it
+cd ..
+sudo dpkg -i python-torbrowser-launcher_2.3.25-2-1-1_all.deb
+cd ../..
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list