Date: Friday, February 3, 2023 @ 00:48:08
  Author: felixonmars
Revision: 1392104

upgpkg: ruby-shellany 0.0.1-2

Modified:
  ruby-shellany/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-03 00:48:03 UTC (rev 1392103)
+++ PKGBUILD    2023-02-03 00:48:08 UTC (rev 1392104)
@@ -2,26 +2,26 @@
 
 pkgname=ruby-shellany
 pkgver=0.0.1
-pkgrel=1
+_commit=4a9e0d4e23001ae97820af186a9b40df371ad5df
+pkgrel=2
 pkgdesc='MRI+JRuby compatible command output capturing'
 arch=(any)
 url='https://github.com/guard/shellany'
 license=(MIT)
 depends=(ruby)
-makedepends=(ruby-nenv ruby-rake ruby-rspec)
+makedepends=(git ruby-nenv ruby-rake ruby-rspec)
 options=(!emptydirs)
-source=(https://github.com/guard/shellany/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('410e663d9bb7d508fef05cbc730065ac9c1021a6b70cc98d08d23795c3c4eb4a')
+source=(git+https://github.com/guard/shellany.git#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd shellany-$pkgver
-  sed -i 's|git ls-files -z|find . -type f -not -path "*/\.git/*" -printf 
"%P\\\\0"|' shellany.gemspec
+  cd shellany
   sed -i '1i require "shellany"' spec/shellany_spec.rb
 }
 
 build() {
   local _gemdir="$(gem env gemdir)"
-  cd shellany-$pkgver
+  cd shellany
   gem build shellany.gemspec
   gem install \
     --local \
@@ -47,12 +47,12 @@
 
 check() {
   local _gemdir="$(gem env gemdir)"
-  cd shellany-$pkgver
+  cd shellany
   GEM_HOME="tmp_install/$_gemdir" rake
 }
 
 package() {
-  cd shellany-$pkgver
+  cd shellany
   cp -a tmp_install/* "$pkgdir"/
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to