blob: c26df125d294c2f66007cbbd99d9f19d8758cdfb (
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
|
# Maintainer: noraj <printf %s 'YWxleGFuZHJlLnphbm5pQGV1cm9wZS5jb20='|base64 -d>
pkgname=ruby-unicode-confusable
_gemname=${pkgname#ruby-}
pkgver=1.10.0
pkgrel=1
pkgdesc='Unicode confusables helper in Ruby.'
arch=('any')
url='https://github.com/janlelis/unicode-confusable'
license=('MIT')
depends=('ruby')
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
noextract=("$_gemname-$pkgver.gem")
sha512sums=('d499c89464e3360e916d7273b53f8343592b9455b5f3290cbabe3b522d7164325b6e8d59c6c4e861701ae52398a6c111b54893d43ea8d950337ad3a728238790')
package() {
_gemhome="$(gem env home)"
gem install --ignore-dependencies --no-user-install --no-document \
-i "$pkgdir/$_gemhome" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
rm "$pkgdir/$_gemhome/cache/$_gemname-$pkgver.gem"
install -Dm 644 "$pkgdir/$_gemhome/gems/$_gemname-$pkgver/MIT-LICENSE.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|