-
-
Notifications
You must be signed in to change notification settings - Fork 87
Generating the package for Ubuntu
If it's your first time generating a .deb
package, please follow ALL instructions from Ubuntu Packaging Guide: http://packaging.ubuntu.com/html/getting-set-up.html
Now let's create the Ubuntu package and upload to the PPA.
Clone the repo and enter into the folder:
git clone [email protected]:rvm/ubuntu_rvm.git
cd ubuntu_rvm
Download stable RVM, extract it and rename it to src
:
wget https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
tar -xzvf stable.tar.gz
rm stable.tar.gz
mv rvm-stable src
Enter src
folder and remove .git
files from the debian package:
cd src
rm -Rf `find | grep '\.git'`
This file is used by the .deb
package to describe files to be installed. Let's go back one folder and create it:
cd ..
find -L src -type f | sed 's,src\(.*\)/\(.*\),src\1/\2 usr/share/rvm/src/rvm\1,' > debian/install
Using any text editor, update the VERSION
file in the ubuntu_rvm
folder. This file must use the same version as RVM (i.e., the same content as the src/VERSION
file).
Run dch -i
to bump the version in debian/changelog
. For the version, add an additional number to identify the package build version. Example: if RVM version is 1.29.9
, first package build will be 1.29.9-1
.
Inside the ubuntu_rvm
folder run:
version=`cat VERSION`
dh_make --indep --createorig --yes -c apache -p rvm_$version
debuild -S -sa
Inside the ubuntu_rvm
folder run:
version=`cat VERSION`
dput ppa:rael-gc/rvm rvm_${version}-1_source.changes
Add changes, Commit and Push.