Skip to content
Snippets Groups Projects
Unverified Commit cc0d7f91 authored by Tim Meusel's avatar Tim Meusel
Browse files

upgpkg: 0.2.0.beta2-8

parent 7fedac6a
No related branches found
Tags 0.2.0.beta2-8
No related merge requests found
pkgbase = ruby-unf
pkgdesc = Wrapper library to bring Unicode Normalization Form support to Ruby/JRuby.
pkgver = 0.2.0.beta2
pkgrel = 7
pkgrel = 8
url = https://github.com/knu/ruby-unf
arch = any
license = BSD
license = BSD-2-Clause
checkdepends = ruby-rake
makedepends = ruby-rdoc
makedepends = ruby-bundler
......
......@@ -5,11 +5,11 @@
_gemname='unf'
pkgname="ruby-${_gemname}"
pkgver=0.2.0.beta2
pkgrel=7
pkgrel=8
pkgdesc='Wrapper library to bring Unicode Normalization Form support to Ruby/JRuby.'
arch=('any')
url='https://github.com/knu/ruby-unf'
license=('BSD')
license=('BSD-2-Clause')
makedepends=('ruby-rdoc' 'ruby-bundler')
checkdepends=('ruby-rake')
depends=('ruby')
......@@ -22,11 +22,14 @@ prepare() {
# we build based on a tar ball, so `git` won't work here
sed --in-place 's|git ls-files|find|' "${_gemname}.gemspec"
# fix license
sed --in-place 's|2-clause BSDL|BSD-2-Clause|' "${_gemname}.gemspec"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
gem build "${_gemname}.gemspec"
gem build --verbose "${_gemname}.gemspec"
}
check() {
......@@ -37,11 +40,21 @@ check() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
local _gemdir="$(gem env gemdir)"
gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
gem install --local --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
rm -rf "${pkgdir}/${_gemdir}/cache"
rm -rf "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/"{Rakefile,Gemfile}
find "${pkgdir}/${_gemdir}/extensions/" \
-type f \
\( \
-iname "mkmf.log" -o \
-iname "gem_make.out" \
\) \
-delete
}
# vim: ts=2 sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment