SHARE
TWEET

Changes to the PKGBUILD of the AUR package, ruby-mailcatcher

jamesan Feb 13th, 2018 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/.SRCINFO b/.SRCINFO
  2. index c2e42f9..2d68ebf 100644
  3. --- a/.SRCINFO
  4. +++ b/.SRCINFO
  5. @@ -1,25 +1,24 @@
  6.  pkgbase = ruby-mailcatcher
  7.     pkgdesc = Catches mail and serves it through a dream.
  8. -   pkgver = 0.6.3
  9. -   pkgrel = 2
  10. +   pkgver = 0.6.5
  11. +   pkgrel = 1
  12.     url = http://mailcatcher.me
  13.     install = ruby-mailcatcher.install
  14.     arch = any
  15.     license = MIT
  16.     makedepends = rubygems
  17. -   depends = ruby-activesupport-4.2
  18. -   depends = ruby-eventmachine
  19. -   depends = ruby-haml
  20. +   depends = ruby-eventmachine-1.0
  21.     depends = ruby-mail
  22. -   depends = ruby-sinatra
  23. +   depends = ruby-rack-1
  24. +   depends = ruby-sinatra-1
  25.     depends = ruby-skinny
  26.     depends = ruby-sqlite3
  27. -   depends = ruby-thin
  28. +   depends = ruby-thin-1.5
  29.     provides = mailcatcher
  30.     conflicts = mailcatcher
  31. -   noextract = mailcatcher-0.6.3.gem
  32. +   noextract = mailcatcher-0.6.5.gem
  33.     options = !emptydirs
  34. -   source = https://github.com/sj26/mailcatcher/releases/download/v0.6.3/mailcatcher-0.6.3.gem
  35. +   source = https://rubygems.org/downloads/mailcatcher-0.6.5.gem
  36.     source = mailcatcher.service
  37.     source = mailcatcher-http@.socket
  38.     source = mailcatcher-http.service
  39. diff --git a/PKGBUILD b/PKGBUILD
  40. index 6bb8865..6e35711 100644
  41. --- a/PKGBUILD
  42. +++ b/PKGBUILD
  43. @@ -3,20 +3,20 @@
  44.  
  45.  pkgname=ruby-mailcatcher
  46.  _pkgname="${pkgname#ruby-}"
  47. -pkgver=0.6.3
  48. -pkgrel=2
  49. +pkgver=0.6.5
  50. +pkgrel=1
  51.  pkgdesc='Catches mail and serves it through a dream.'
  52.  arch=('any')
  53.  url="http://$_pkgname.me"
  54.  license=('MIT')
  55. -depends=('ruby-activesupport-4.2' 'ruby-eventmachine' 'ruby-haml' 'ruby-mail' 'ruby-sinatra' 'ruby-skinny' 'ruby-sqlite3' 'ruby-thin')
  56. +depends=('ruby-eventmachine-1.0' 'ruby-mail' 'ruby-rack-1' 'ruby-sinatra-1' 'ruby-skinny' 'ruby-sqlite3' 'ruby-thin-1.5')
  57.  makedepends=('rubygems')
  58.  provides=("$_pkgname")
  59.  conflicts=("$_pkgname")
  60.  options=(!emptydirs)
  61.  install="$pkgname.install"
  62.  source=(
  63. -  "https://github.com/sj26/$_pkgname/releases/download/v$pkgver/$_pkgname-$pkgver.gem"
  64. +  "https://rubygems.org/downloads/$_pkgname-$pkgver.gem"
  65.    "$_pkgname.service"
  66.    "$_pkgname-http@.socket"
  67.    "$_pkgname-http.service"
  68. @@ -31,32 +31,15 @@ md5sums=('SKIP'
  69.           'be35bfe4c621b7f2ff733e2c21bee54d')
  70.  noextract=("$_pkgname-$pkgver.gem")
  71.  
  72. -# Derive the latest release's version string from its tag name.
  73. -pkgver() {
  74. -    (
  75. -        set -o pipefail
  76. -        curl https://api.github.com/repos/sj26/mailcatcher/releases/latest |
  77. -        sed -n '/"tag_name"/{s/^ \+"tag_name": "v\?\([^"]*\)",//;p}'
  78. -    )
  79. -}
  80. -
  81.  package() {
  82.    # _gemdir is defined inside package() because if ruby[gems] is not installed on
  83.    # the system, makepkg will exit with an error when sourcing the PKGBUILD.
  84. -  _gemdir="$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')"
  85. +  _gemdir="$pkgdir$(ruby -e'puts Gem.default_dir')"
  86.    _gemspec="$_gemdir/specifications/$_pkgname-$pkgver.gemspec"
  87.  
  88. -  echo $_gemdir
  89. -  echo $_gemspec
  90. -  echo "$_pkgname-$pkgver.gem"
  91. -
  92.    gem install --no-document --no-user-install --ignore-dependencies --install-dir "$_gemdir" --bindir "$pkgdir/usr/bin" "$_pkgname-$pkgver.gem"
  93.    rm "$_gemdir/cache/$_pkgname-$pkgver.gem"
  94.  
  95. -  # Loosen version-specific dependencies (doesn't appear to affect the software)
  96. -  sed -i '/dependency(%q<eventmachine>/{s/".*"/"~> 1"/}' $_gemspec
  97. -  sed -i '/dependency(%q<thin>/{s/".*"/"~> 1"/}' $_gemspec
  98. -
  99.    # Install systemd units
  100.    for file in "$_pkgname"{.service,{-http,-smtp}{.service,@.socket}}; do
  101.      install -Dm644 "$file" "$pkgdir/usr/lib/systemd/system/$file"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top