upgpkg: ruby-unicode-display_width 2.3.0-1
This commit is contained in:
parent
b4aee7a6b6
commit
0eb62ccd39
1 changed files with 23 additions and 16 deletions
|
@ -2,23 +2,38 @@
|
||||||
|
|
||||||
pkgname=ruby-unicode-display_width
|
pkgname=ruby-unicode-display_width
|
||||||
_gemname="${pkgname#ruby-}"
|
_gemname="${pkgname#ruby-}"
|
||||||
pkgver=2.2.0
|
pkgver=2.3.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Determines the monospace display width of a string in Ruby'
|
pkgdesc='Determines the monospace display width of a string in Ruby'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='https://github.com/janlelis/unicode-display_width'
|
url='https://github.com/janlelis/unicode-display_width'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('ruby')
|
depends=('ruby')
|
||||||
makedepends=('ruby-rdoc')
|
makedepends=('git' 'ruby-rdoc')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
_commit='64497bb7886d00dfbc56b4b95aba93633ad5b4d3'
|
||||||
noextract=("$_gemname-$pkgver.gem")
|
source=("$pkgname::git+$url#commit=$_commit")
|
||||||
b2sums=('539ead4d7fd3c113c99b7886b6e1e00f39431a8a3690bfcd6cdfa11b954e7e96c78c88a821f734449e8f5acc377ed2573934bab6e36ec316f708fa720cbef271')
|
b2sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$pkgname"
|
||||||
|
|
||||||
|
git describe --tags | sed 's/^v//'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname"
|
||||||
|
|
||||||
|
gem build "$_gemname.gemspec"
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
cd "$pkgname"
|
||||||
|
|
||||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||||
|
|
||||||
gem install \
|
gem install \
|
||||||
|
--local \
|
||||||
--verbose \
|
--verbose \
|
||||||
--ignore-dependencies \
|
--ignore-dependencies \
|
||||||
--no-user-install \
|
--no-user-install \
|
||||||
|
@ -27,16 +42,8 @@ package() {
|
||||||
"$_gemname-$pkgver.gem"
|
"$_gemname-$pkgver.gem"
|
||||||
|
|
||||||
# delete cache
|
# delete cache
|
||||||
cd "$pkgdir/$_gemdir"
|
rm -vrf "$pkgdir/$_gemdir/cache"
|
||||||
rm -vrf cache
|
|
||||||
|
|
||||||
cd "gems/$_gemname-$pkgver"
|
# license
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" MIT-LICENSE.txt
|
||||||
# move documentation
|
|
||||||
install -vd "$pkgdir/usr/share/doc/$pkgname"
|
|
||||||
mv -vt "$pkgdir/usr/share/doc/$pkgname" *.md
|
|
||||||
|
|
||||||
# move license
|
|
||||||
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
|
||||||
mv -vt "$pkgdir/usr/share/licenses/$pkgname" MIT-LICENSE.txt
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue