summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2020-12-13 16:56:36 -0500
committerMario Finelli2020-12-13 16:56:36 -0500
commit2d78201fc53cd1931e7c055bd7dd7a7ccd58e458 (patch)
treebe8285c8667bc19a704590858a5d1ef02b3833a6
parent8c71c8d731b99ba580ed0b1e63cbb9e225d90723 (diff)
downloadaur-2d78201fc53cd1931e7c055bd7dd7a7ccd58e458.tar.gz
Switch to build from source and update to 3.14.1
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD39
2 files changed, 32 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e35ee0e457e..85ca513bffe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,20 @@
pkgbase = capistrano
- pkgdesc = A remote server automation and deployment tool written in Ruby.
- pkgver = 3.10.1
+ pkgdesc = A remote server automation and deployment tool written in Ruby
+ pkgver = 3.14.1
pkgrel = 1
url = http://capistranorb.com
arch = any
license = MIT
makedepends = ruby-rdoc
+ makedepends = rubygems
depends = ruby
depends = ruby-rake
depends = ruby-sshkit
depends = ruby-i18n
depends = ruby-airbrussh
- noextract = capistrano-3.10.1.gem
options = !emptydirs
- source = https://rubygems.org/downloads/capistrano-3.10.1.gem
- sha256sums = e98a86136b7d4f1ea3b7a4d904deceeeb5433a2195069c2ece3666ac5c771d66
+ source = https://github.com/capistrano/capistrano/archive/v3.14.1.tar.gz
+ sha256sums = 501b8d5a227e8decfebcfbd4ff219cb30b3d04cba97d8177b707fd9e310be4ed
pkgname = capistrano
diff --git a/PKGBUILD b/PKGBUILD
index 4a945079f31..086e7b9ab75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,34 @@
# Maintainer: Mario Finelli <mario at finel dot li>
pkgname=capistrano
-pkgver=3.10.1
+pkgver=3.14.1
pkgrel=1
-pkgdesc='A remote server automation and deployment tool written in Ruby.'
+pkgdesc="A remote server automation and deployment tool written in Ruby"
arch=(any)
-url='http://capistranorb.com'
-license=('MIT')
-depends=('ruby' 'ruby-rake' 'ruby-sshkit' 'ruby-i18n' 'ruby-airbrussh')
-makedepends=('ruby-rdoc')
+url="http://capistranorb.com"
+license=(MIT)
+depends=(ruby ruby-rake ruby-sshkit ruby-i18n ruby-airbrussh)
+makedepends=(ruby-rdoc rubygems)
options=(!emptydirs)
-source=(https://rubygems.org/downloads/$pkgname-$pkgver.gem)
-noextract=($pkgname-$pkgver.gem)
-sha256sums=('e98a86136b7d4f1ea3b7a4d904deceeeb5433a2195069c2ece3666ac5c771d66')
+source=(https://github.com/capistrano/capistrano/archive/v${pkgver}.tar.gz)
+sha256sums=('501b8d5a227e8decfebcfbd4ff219cb30b3d04cba97d8177b707fd9e310be4ed')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ sed -i 's|~>|>=|g' ${pkgname}.gemspec
+ sed -i 's%gem.files .*%gem.files = `find`.split("\\n")%' \
+ ${pkgname}.gemspec
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ gem build ${pkgname}.gemspec
+}
package() {
- local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ cd ${pkgname}-${pkgver}
+ local _gemdir="$(gem env gemdir)"
gem install \
--ignore-dependencies \
@@ -26,6 +39,8 @@ package() {
rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem"
- install -Dm0644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/LICENSE.txt" \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
+
+# vim: set ts=2 sw=2 et: