[arch-commits] Commit in ruby-pg/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Nov 16 23:56:43 UTC 2019


    Date: Saturday, November 16, 2019 @ 23:56:43
  Author: anthraxx
Revision: 529848

upgpkg: ruby-pg 1.1.4-1

Modified:
  ruby-pg/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-16 23:48:08 UTC (rev 529847)
+++ PKGBUILD	2019-11-16 23:56:43 UTC (rev 529848)
@@ -3,9 +3,8 @@
 
 _gemname=pg
 pkgname=ruby-pg
-pkgver=1.0.0
-_commit=9a388d1023ec
-pkgrel=2
+pkgver=1.1.4
+pkgrel=1
 pkgdesc='Pg is the Ruby interface to the Postgresql RDBMS'
 url='https://bitbucket.org/ged/ruby-pg'
 arch=('x86_64')
@@ -12,12 +11,12 @@
 license=('custom:BSDL')
 depends=('ruby' 'ruby-rspec-core' 'postgresql-libs')
 options=('!emptydirs')
-source=(${pkgname}-${pkgver}.tar.bz2::https://bitbucket.org/ged/ruby-pg/get/v${pkgver}.tar.bz2)
-sha256sums=('a3e18534feefc6eeff27c5621f63c23509cddd7a5ea0227caababd311f2333ba')
-sha512sums=('eb01ffa74186b3216e4fbb694820c02907af5f0c5c9fd77645d97396286ff810d858717de25b348d5144043f883e641bc5249901d0845e69cef2d4e94e9487f1')
+source=(https://github.com/ged/ruby-pg/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('a8092df4ed85e99b4bb40d30164b34e08b134f3d3ee4b618a8bd7974db379e6a')
+sha512sums=('936696c47eb4761104a451335c73e0bc13c11b8098c62f62b7973ba51e4a1f4f692f32322cbd5044b442d7acced15eefed026fde24268c4f3bde662b49eadb3e')
 
 prepare() {
-  cd ged-${pkgname}-${_commit}
+  cd ${pkgname}-${pkgver}
   sed 's|"ChangeLog".freeze, ||' -i ${_gemname}.gemspec
   sed 's|"lib/pg/deprecated_constants.rb".freeze, ||' -i ${_gemname}.gemspec
   sed "s|^  s.version = .*$|  s.version = '${pkgver}'|" -i ${_gemname}.gemspec
@@ -24,18 +23,22 @@
 }
 
 build() {
-  cd ged-${pkgname}-${_commit}
+  cd ${pkgname}-${pkgver}
   gem build ${_gemname}.gemspec
 }
 
 package() {
-  cd ged-${pkgname}-${_commit}
+  cd ${pkgname}-${pkgver}
   local _gemdir="$(gem env gemdir)"
-  gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" \
+    -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+
   install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  find "${pkgdir}/${_gemdir}" \( -name 'mkmf.log' -or -name 'gem_make.out' \) -delete
-  rm "${pkgdir}"/${_gemdir}/cache/${_gemname}-${pkgver}.gem
+
+  cd "${pkgdir}/${_gemdir}"
+  rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \
+    extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list