Skip to content

Commit

Permalink
bundler: added
Browse files Browse the repository at this point in the history
  • Loading branch information
conraid committed Jan 10, 2016
2 parents edf0332 + 3cc3c97 commit 85d1bd1
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
73 changes: 73 additions & 0 deletions bundler/bundler.SlackBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/bin/sh
#
# Slackware build script for bundler
#
# Copyright 2015 Corrado Franco (http://conraid.net)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version, with the following exception:
# the text of the GPL license may be omitted.

# This program is distributed in the hope that it will be useful, but
# without any warranty; without even the implied warranty of
# merchantability or fitness for a particular purpose. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.

# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
#
# Latest version of this SlackBuild at https://github.com/conraid/SlackBuilds

set -eu

CWD=$(pwd)

PRGNAM=bundler
VERSION=${VERSION:-1.11.2}
BUILD=${BUILD:-1}
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PRGNAM

if [ -z ${ARCH:=""} ]; then
case "$( uname -m )" in
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP

DESTDIR="$(ruby -e'puts Gem.default_dir')"
HOME="/tmp" \
GEM_HOME="$DESTDIR" GEM_PATH="$DESTDIR" \
gem install \
--local \
--no-update-sources \
--ignore-dependencies \
--backtrace \
--no-user-install \
--install-dir $PKG/$DESTDIR \
--bindir $PKG/usr/bin \
$CWD/$PRGNAM-$VERSION.gem

rm -rf $PKG/$DESTDIR/cache

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
10 changes: 10 additions & 0 deletions bundler/bundler.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PRGNAM="bundler"
VERSION="1.11.2"
HOMEPAGE="http://bundler.io/"
DOWNLOAD="https://rubygems.org/downloads/bundler-1.11.2.gem"
FILENAME="bundler-1.11.2.gem"
MD5SUM="d5564e60d802c136302076ebaf336c15"
SHASUM="8eb956dec72da753d3d2a2126c78508b17af434e"
REQUIRES=""
MAINTAINER="Corrado Franco"
EMAIL="conraid (at) linux (dot) it"
19 changes: 19 additions & 0 deletions bundler/slack-desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

|-----handy-ruler------------------------------------------------------|
bundler: bundler (Manage Ruby application dependencies)
bundler:
bundler: Bundler provides a consistent environment for Ruby projects by
bundler: tracking and installing the exact gems and versions that are needed.
bundler:
bundler:
bundler:
bundler:
bundler:
bundler:
bundler:

0 comments on commit 85d1bd1

Please sign in to comment.