diff options
author | Tom Vincent | 2020-05-11 23:56:04 +0100 |
---|---|---|
committer | Tom Vincent | 2020-05-11 23:56:04 +0100 |
commit | 78718bf5cc000bcb4baacaec92f4a65cb227d291 (patch) | |
tree | 8a9c4983b07cfac337c2e7a14561c1f41e75a9c6 | |
download | aur-78718bf5cc000bcb4baacaec92f4a65cb227d291.tar.gz |
feat: initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..679b51e5e83a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ruby-tty-which + pkgdesc = Cross-platform implementation of Unix which command + pkgver = 0.4.2 + pkgrel = 1 + url = https://github.com/piotrmurach/tty-which + arch = any + license = MIT + makedepends = rubygems + depends = ruby + noextract = tty-which-0.4.2.gem + source = https://rubygems.org/downloads/tty-which-0.4.2.gem + md5sums = 2418a6f6dbe3eda6d1af13c11b3e4f3e + +pkgname = ruby-tty-which + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cf4a54d00c61 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Tom Vincent <aur@tlvince.com> +pkgname=ruby-tty-which +_gemname=tty-which +pkgver=0.4.2 +pkgrel=1 +pkgdesc="Cross-platform implementation of Unix which command" +arch=('any') +url="https://github.com/piotrmurach/tty-which" +license=('MIT') +depends=('ruby') +makedepends=('rubygems') +source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") +noextract=("${_gemname}-${pkgver}.gem") +md5sums=('2418a6f6dbe3eda6d1af13c11b3e4f3e') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" \ + -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" +} |