blob: 90f955653e59a4c0e2b34ba981037388bea2d2b3 (
plain) (
blame)
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
44
45
46
47
48
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=ruby-diff-lcs
_gemname=${pkgname#ruby-}
pkgver=1.4.4
pkgrel=0
pkgdesc="Generate difference sets between Ruby sequences"
url="http://halostatue.github.io/diff-lcs/"
arch="noarch"
options="!check" # to avoid cyclic dependency with rspec
license="MIT"
depends="ruby"
subpackages="$pkgname-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/halostatue/$_gemname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
build() {
gem build $_gemname.gemspec
}
package() {
gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
geminstdir="$gemdir/gems/$_gemname-$pkgver"
gem install --local \
--install-dir "$gemdir" \
--bindir "$pkgdir/usr/bin" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
# Remove unnecessary files.
cd "$gemdir"
rm -r cache/ build_info/ doc/
cd "$geminstdir"
rm -r autotest/ docs/ spec/ Rakefile *.md *.rdoc *.txt
}
tools() {
pkgdesc="$pkgdesc (CLI tools)"
depends="$pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
}
sha512sums="52fc0501516299396f570be7f35d856ddeed9637430019ca831759467474cecff72be0dace2fed020dacb5f551febef047e3f1928affa0ac0f18b636ee94baa7 ruby-diff-lcs-1.4.4.tar.gz"
|