blob: 490172f607f0ebb2431013605f9d3afe50e79397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Contributor: Leonidas <marek@xivilization.net>
_gemname=homesick
pkgname=${_gemname}
pkgver=0.9.8
pkgrel=1
pkgdesc="A man's home is his castle. Never leave your dotfiles behind."
arch=(any)
url="http://github.com/technicalpickles/homesick"
license=('MIT')
depends=(ruby ruby-thor)
# well, rubygems is part of the ruby package nowadays, but *shrug*
makedepends=(rubygems)
source=(http://rubygems.org/downloads/${pkgname}-${pkgver}.gem)
noextract=(${pkgname}-${pkgver}.gem)
sha512sums=('03e07e69462307cf528e3c982322deefadf11960bdc8acd5153f32bf7fe994562edb55d7815142d0b151268ec2fd52425c42e0487440edfa8c71e55074bba60e')
package() {
cd "${srcdir}"
# _gemdir is defined inside package() because if ruby[gems] is not installed on
# the system makepkg will barf when sourcing the PKGBUILD.
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
# we want to write the 'homesick' binary to the $PATH
local _bindir="${pkgdir}/usr/bin"
gem install \
--no-user-install \
--ignore-dependencies \
--install-dir "${pkgdir}${_gemdir}" \
--bindir "${_bindir}" \
${pkgname}-${pkgver}.gem
}
|