Date: Friday, February 3, 2023 @ 00:28:37
  Author: felixonmars
Revision: 1392081

upgpkg: ruby-notiffany 0.1.3-2

Modified:
  ruby-notiffany/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-03 00:27:21 UTC (rev 1392080)
+++ PKGBUILD    2023-02-03 00:28:37 UTC (rev 1392081)
@@ -2,25 +2,27 @@
 
 pkgname=ruby-notiffany
 pkgver=0.1.3
-pkgrel=1
+_commit=c726a05138e55c7247bd7e370aa21b1586d86ea5
+pkgrel=2
 pkgdesc='Wrapper libray for most popular notification libraries such as Growl, 
Libnotify, Notifu'
 arch=(any)
 url='https://github.com/guard/notiffany'
 license=(MIT)
 depends=(ruby-nenv ruby-shellany)
+makedepends=(git)
 checkdepends=(ruby-rake ruby-rspec tmux)
 options=(!emptydirs)
-source=(https://github.com/guard/notiffany/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('1f4dda29b909e639a45bff517eaa3298d2038f610d2c56bd6ef53fa7827da3b4')
+source=(git+https://github.com/guard/notiffany.git#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd notiffany-$pkgver
-  sed -i -e 's|~>|>=|' -e 's|git ls-files -z|find . -type f -not -path 
"*/\.git/*" -printf "%P\\\\0"|' notiffany.gemspec
+  cd notiffany
+  sed -i -e 's|~>|>=|' notiffany.gemspec
 }
 
 build() {
   local _gemdir="$(gem env gemdir)"
-  cd notiffany-$pkgver
+  cd notiffany
   gem build notiffany.gemspec
   gem install \
     --local \
@@ -46,13 +48,13 @@
 
 check() {
   local _gemdir="$(gem env gemdir)"
-  cd notiffany-$pkgver
+  cd notiffany
   # https://github.com/guard/notiffany/issues/44
   GEM_HOME="tmp_install/$_gemdir" rake || echo "Tests failed"
 }
 
 package() {
-  cd notiffany-$pkgver
+  cd notiffany
   cp -a tmp_install/* "$pkgdir"/
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to