[arch-commits] Commit in ruby-safe_yaml/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 26 01:47:49 UTC 2019
Date: Thursday, December 26, 2019 @ 01:47:47
Author: felixonmars
Revision: 541809
archrelease: copy trunk to community-staging-any
Added:
ruby-safe_yaml/repos/community-staging-any/
ruby-safe_yaml/repos/community-staging-any/PKGBUILD
(from rev 541808, ruby-safe_yaml/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: ruby-safe_yaml/repos/community-staging-any/PKGBUILD (from rev 541808, ruby-safe_yaml/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-12-26 01:47:47 UTC (rev 541809)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=safe_yaml
+pkgname=ruby-safe_yaml
+pkgver=1.0.4
+pkgrel=5
+pkgdesc='Parse YAML safely'
+url='https://github.com/dtao/safe_yaml'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dtao/safe_yaml/archive/${pkgver}.tar.gz)
+sha256sums=('fb6939f6780680716a7c1eeb4ddf843d03a5951539fcdccce5901c3eb0a525c9')
+sha512sums=('88f498443e556117090cae219a5c1c853b4ab3fb1248e3f7e9d7d3df7d016a894add50b7d713d44e62a86bdce3c98190b6930a22bba85b32d5519dafec5cdb1f')
+
+prepare() {
+ cd ${_gemname}-${pkgver}
+ sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla blaA
+ sed 's|git ls-files|find|' -i ${_gemname}.gemspec
+}
+
+build() {
+ cd ${_gemname}-${pkgver}
+ gem build ${_gemname}.gemspec
+}
+
+package() {
+ cd ${_gemname}-${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 CHANGES.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:
More information about the arch-commits
mailing list