summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaochen Tong2018-02-25 18:17:20 +0800
committerHaochen Tong2018-02-25 18:17:20 +0800
commit937386567abb7f65217e9eb5da7f9c02c1aa9b5d (patch)
tree70a6030363cde5a5b203126eb42db737dd245368
parent3d3f4f77bc32ddb191fbf778853ebeab8458eeff (diff)
downloadaur-937386567abb7f65217e9eb5da7f9c02c1aa9b5d.tar.gz
upgpkg
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 18 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 438c696f350..77748100a48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
# Generated by mksrcinfo v8
-# Sat Feb 13 16:32:31 UTC 2016
+# Sun Feb 25 10:17:11 UTC 2018
pkgbase = ruby-binman
pkgdesc = Produces UNIX manual pages for executable scripts
- pkgver = 5.0.1
+ pkgver = 5.1.0
pkgrel = 1
url = https://github.com/sunaku/binman
arch = any
license = ISC
+ makedepends = ruby-rdoc
depends = ruby
depends = ruby-opener
- provides = binman
- provides = ruby-binman
- conflicts = binman
- noextract = binman-5.0.1.gem
- source = https://rubygems.org/downloads/binman-5.0.1.gem
- sha256sums = 73501b43ab2a67fb7611199b07a920db41f33297fd0d8a93ef2867862508589c
+ noextract = binman-5.1.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/binman-5.1.0.gem
+ sha256sums = 767b5174a333e5f0c2f4d6346f28b9a91e8233347fe55dbb9100e558a0afc4f2
pkgname = ruby-binman
diff --git a/PKGBUILD b/PKGBUILD
index d85e105f3af..89267a5bb51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,23 @@
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Contributor: Haochen Tong <i at hexchain dot org>
-pkgname=ruby-binman
-pkgver=5.0.1
+_gemname_=binman
+pkgname=ruby-${_gemname_}
+pkgver=5.1.0
pkgrel=1
pkgdesc="Produces UNIX manual pages for executable scripts"
arch=('any')
depends=('ruby' 'ruby-opener')
+makedepends=('ruby-rdoc')
url="https://github.com/sunaku/binman"
license=('ISC')
-source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
-sha256sums=('73501b43ab2a67fb7611199b07a920db41f33297fd0d8a93ef2867862508589c')
+source=(https://rubygems.org/downloads/${_gemname_}-${pkgver}.gem)
+sha256sums=('767b5174a333e5f0c2f4d6346f28b9a91e8233347fe55dbb9100e558a0afc4f2')
noextract=("${pkgname#*-}-${pkgver}.gem")
-provides=('binman' 'ruby-binman')
-conflicts=('binman')
+options=(!emptydirs)
package() {
- cd "$srcdir"
-
- msg2 'Installing...'
- gem install \
- --no-user-install \
- --ignore-dependencies \
- -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" \
- ${pkgname#*-}-$pkgver.gem
+ 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"
}