blob: 956e743978815a41203027fb5e014a32d039e23c (
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
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Vojtěch Aschenbrenner <v@asch.cz>
_gemname="sup"
pkgname="${_gemname}"
pkgver=1.2
pkgrel=2
pkgdesc='Console-based email client for people with a lot of email. Great mutt alternative.'
arch=('any')
url='http://sup-heliotrope.github.io/'
license=('GPL2')
depends=(
'ruby'
'ruby-chronic'
'ruby-highline'
'ruby-locale>=2.0' 'ruby-locale<3'
'ruby-lockfile'
'ruby-mime-types>2.0'
'ruby-ncursesw>=1.4.0' 'ruby-ncursesw<1.5'
'ruby-optimist'
'ruby-rmail>=1.1.2' 'ruby-rmail<2'
'ruby-unicode>=0.4.4' 'ruby-unicode<0.5'
'ruby-unicode-display_width'
'ruby-xapian-ruby>=1.2' 'ruby-xapian-ruby<2'
)
makedepends=('ruby-rake')
optdepends=(
'ruby-gpgme>=2.0.2: PGP support'
)
conflicts=('sup-git')
source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
noextract=("${_gemname}-${pkgver}.gem")
b2sums=('2ec78cfd84973671759479a9197355903e881ef5f1324c9946b785711eeff1fce3a2dbea993dedf90d0b37dad95fa07051d627e587515e9c54193206eabcb14e')
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.
local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "${pkgdir}/$_gemdir" -n "${pkgdir}/usr/bin" \
"${_gemname}-${pkgver}.gem"
}
|