Created
March 28, 2011 22:34
-
-
Save rcrowley/891447 to your computer and use it in GitHub Desktop.
Revisions
-
rcrowley created this gist
Mar 28, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ VERSION="1.9.2" PATCH="180" DPKG_BUILD_ARCH="$(dpkg --print-architecture)" set -e DESTDIR="$(mktemp -d)" debra create "$DESTDIR" trap "debra destroy \"$DESTDIR\"" EXIT apt-get -y install libssl-dev libreadline5-dev zlib1g-dev debra sourceinstall "$DESTDIR" \ "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$VERSION-p$PATCH.tar.gz" \ -b"sh -c 'echo fcntl\\\nopenssl\\\nreadline\\\nzlib >ext/Setup'" \ -p/usr -f"--program-suffix=-$VERSION" cat >$DESTDIR/DEBIAN/control <<EOF Package: ruby-$VERSION Version: $VERSION-p$PATCH Section: devel Priority: optional Essential: no Architecture: $DPKG_BUILD_ARCH Depends: libc6, libssl0.9.8, libreadline5, zlib1g Maintainer: Richard Crowley <[email protected]> Description: Ruby $VERSION. EOF debra build "$DESTDIR" "ruby-${VERSION}_${VERSION}-p${PATCH}_${DPKG_BUILD_ARCH}.deb"