Date: Sunday, October 16, 2022 @ 07:07:01
  Author: grawlinson
Revision: 1329389

archrelease: copy trunk to community-any

Added:
  ruby-unicode-version/repos/community-any/
  ruby-unicode-version/repos/community-any/PKGBUILD
    (from rev 1329388, ruby-unicode-version/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: ruby-unicode-version/repos/community-any/PKGBUILD (from rev 1329388, 
ruby-unicode-version/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2022-10-16 07:07:01 UTC (rev 1329389)
@@ -0,0 +1,57 @@
+# Maintainer: George Rawlinson <grawlin...@archlinux.org>
+
+pkgname=ruby-unicode-version
+_pkgname="${pkgname#ruby-}"
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='Returns Unicode/Emoji versions of current and previous Rubies'
+arch=('any')
+url='https://github.com/janlelis/unicode-version'
+license=('MIT')
+depends=('ruby')
+makedepends=('git')
+checkdepends=('ruby-rake' 'ruby-minitest')
+options=('!emptydirs')
+_commit='62ca01599b3ba3773616f499437a9861f8acf3b4'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  gem build "$_pkgname.gemspec"
+}
+
+check() {
+  cd "$pkgname"
+
+  rake spec
+}
+
+package() {
+  cd "$pkgname"
+
+  local _gemdir="$(gem env gemdir)"
+
+  gem install \
+    --local \
+    --verbose \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "$pkgdir/$_gemdir" \
+    --bindir "$pkgdir/usr/bin" \
+    "$_pkgname-$pkgver.gem"
+
+  # delete cache
+  rm -rf "$pkgdir/$_gemdir/cache"
+
+  # license
+  install -vd "$pkgdir/usr/share/licenses/$pkgname"
+  ln -sf "$_gemdir/gems/$_pkgname-$pkgver/MIT-LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname"
+}

Reply via email to