blob: 2195354f83d603bc51161c0939926d8783580295 (
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
|
# Maintainer: mutantmonkey <aur@mutantmonkey.in>
pkgname=ciphr
pkgver=120.f1f049d
_gemver=0.0.3
pkgrel=2
pkgdesc="A CLI tool for encoding, decoding, encryption, decryption, and hashing streams of data."
url="https://github.com/frohoff/ciphr"
arch=('any')
license=('MIT')
depends=('ruby' 'ruby-parslet-1.5' 'ruby-base32' 'ruby-slop-3')
makedepends=('git' 'ruby-bundler')
source=('git+https://github.com/frohoff/ciphr.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/ciphr"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
build() {
cd "$srcdir/ciphr"
bundle install --path=bundle
bundle exec rake build
}
package() {
cd "$srcdir/ciphr"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" pkg/ciphr-$_gemver.gem
rm "$pkgdir/$_gemdir/cache/ciphr-$_gemver.gem"
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/ciphr/LICENSE.txt"
}
# vim:set ts=2 sw=2 et:
|