Date: Sunday, January 1, 2017 @ 00:23:19 Author: anthraxx Revision: 203428
addpkg: ruby-celluloid-fsm 0.20.5-2 Added: ruby-celluloid-fsm/ ruby-celluloid-fsm/repos/ ruby-celluloid-fsm/trunk/ ruby-celluloid-fsm/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: ruby-celluloid-fsm/trunk/PKGBUILD =================================================================== --- ruby-celluloid-fsm/trunk/PKGBUILD (rev 0) +++ ruby-celluloid-fsm/trunk/PKGBUILD 2017-01-01 00:23:19 UTC (rev 203428) @@ -0,0 +1,40 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +_gemname=celluloid-fsm +pkgname=ruby-${_gemname} +pkgver=0.20.5 +pkgrel=2 +pkgdesc='Simple finite state machines with integrated Celluloid timeout support' +url='https://github.com/celluloid/celluloid-fsm' +arch=('any') +license=('MIT') +depends=('ruby' 'ruby-timers') +makedepends=('git') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/celluloid/celluloid-fsm/archive/v${pkgver}.tar.gz + culture-git::"git+https://github.com/celluloid/culture#commit=d76f772a2d669be2028d8be1c8baa95f7d3174a0") +sha512sums=('b5d622a1192332dc84f9cd074e143da731304d2640f37a4123e6905f91cdb0ad238663254a4de05ecd2071519b12eb3ac44e608aac8d968b9a9d32726d88ba07' + 'SKIP') + +prepare() { + cd ${_gemname}-${pkgver} + sed 's|git ls-files -z|find -not -path "*culture*" -print0|' -i ${_gemname}.gemspec + rmdir culture + cp -ra "${srcdir}/culture-git" culture +} + +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: