Date: Saturday, December 31, 2016 @ 23:20:54 Author: anthraxx Revision: 203410
addpkg: ruby-net-dns 0.8.0-2 Added: ruby-net-dns/ ruby-net-dns/repos/ ruby-net-dns/trunk/ ruby-net-dns/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) Added: ruby-net-dns/trunk/PKGBUILD =================================================================== --- ruby-net-dns/trunk/PKGBUILD (rev 0) +++ ruby-net-dns/trunk/PKGBUILD 2016-12-31 23:20:54 UTC (rev 203410) @@ -0,0 +1,29 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +_gemname=net-dns +pkgname=ruby-${_gemname} +pkgver=0.8.0 +pkgrel=2 +pkgdesc='Pure Ruby DNS library, with a clean OO interface and an extensible API' +url='https://github.com/bluemonk/net-dns' +arch=('any') +license=('BSDL') +depends=('ruby') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/bluemonk/net-dns/archive/v${pkgver}.tar.gz) +sha512sums=('48db69a5547899d447fb953dab1e4054d7d7ed9afb796b39bf5ea7c875c9980e7d60040ee570b53f003ca9dfe054d6c3e65ec1291646332e1acbbd3721267146') + +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 CHANGELOG.md README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} + +# vim: ts=2 sw=2 et: