Date: Thursday, December 27, 2018 @ 04:49:36 Author: foutrelis Revision: 418283
archrelease: copy trunk to community-staging-any Added: ruby-public_suffix/repos/community-staging-any/ ruby-public_suffix/repos/community-staging-any/PKGBUILD (from rev 418282, ruby-public_suffix/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: ruby-public_suffix/repos/community-staging-any/PKGBUILD (from rev 418282, ruby-public_suffix/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-12-27 04:49:36 UTC (rev 418283) @@ -0,0 +1,40 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: farawayer <farwa...@gmail.com> + +_gemname=public_suffix +pkgname=ruby-public_suffix +pkgver=3.0.3 +pkgrel=2 +pkgdesc='Domain name parser based on the Public Suffix List' +arch=('any') +url='https://simonecarletti.com/code/publicsuffix-ruby' +license=('MIT') +depends=('ruby') +makedepends=('ruby-rdoc') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/weppos/publicsuffix-ruby/archive/v${pkgver}.tar.gz) +sha512sums=('db15409885f0e886489c19482ecf2d0122d56f09e4b18ca3f1dfcd1f22bccb792b1780ae19a1c096b4b62f5c356f2e8b5aa95dee97001394b086a25eedd208e8') + +prepare() { + cd publicsuffix-ruby-${pkgver} + sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla + sed 's|git ls-files -- {test,spec,features}/*|find -type f test spec features|' -i ${_gemname}.gemspec + sed 's|git ls-files|find -type f|' -i ${_gemname}.gemspec +} + +build() { + cd publicsuffix-ruby-${pkgver} + gem build ${_gemname}.gemspec +} + +package() { + cd publicsuffix-ruby-${pkgver} + local _gemdir="$(gem env gemdir)" + gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem + install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} + +# vim: ts=2 sw=2 et: