Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
abs
Commits
f1024dff
Commit
f1024dff
authored
Apr 27, 2011
by
matt mooney
Committed by
Allan McRae
Jul 02, 2011
Browse files
PKGBUILD-rubygem: add variable for gem name
Signed-off-by:
matt mooney
<
mfm@muteddisk.com
>
parent
c02afb36
Changes
1
Hide whitespace changes
Inline
Side-by-side
prototypes/PKGBUILD-rubygem.proto
View file @
f1024dff
...
...
@@ -7,7 +7,8 @@
#
information
on
Ruby
Gem
packaging.
#
Maintainer
:
Your
Name
<
youremail
@
domain.com
>
pkgname
=
ruby
-
GEMNAME
_gemname
=
GEMNAME
pkgname
=
ruby
-
$
_gemname
pkgver
=
VERSION
pkgrel
=
1
pkgdesc
=
""
...
...
@@ -16,18 +17,18 @@ url=""
license
=
(
'GPL'
)
depends
=
(
ruby
)
#
Full
dependency
information
is
available
in
the
yaml
specification
makedepends
=
(
rubygems
)
source
=
(
http
:
//gems.rubyforge.org/gems/
GEMNAME
-$pkgver.gem)
noextract
=
(
GEMNAME
-
$
pkgver.gem
)
source
=
(
http
:
//gems.rubyforge.org/gems/
$_gemname
-$pkgver.gem)
noextract
=
(
$
_gemname
-
$
pkgver.gem
)
md5sums
=
()
package
()
{
cd
"$srcdir"
#
_gemdir
is
defined
inside
package
()
because
if
ruby
[
gems
]
is
not
installed
on
the
system
#
makepkg
will
exit
with
an
error
when
sourcing
the
PKGBUILD
#
_gemdir
is
defined
inside
package
()
because
if
ruby
[
gems
]
is
not
installed
on
#
the
system
,
makepkg
will
exit
with
an
error
when
sourcing
the
PKGBUILD
.
local
_gemdir
=
"$(ruby -rubygems -e'puts Gem.default_dir')"
gem
install
--
ignore
-
dependencies
-
i
"$pkgdir$_gemdir"
-
n
"$pkgdir/usr/bin"
\
"
GEMNAME
-$pkgver.gem"
"
$_gemname
-$pkgver.gem"
}
#
vim
:
set
ts
=
2
sw
=
2
et
:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment