Date: Sunday, March 1, 2020 @ 21:29:01 Author: anthraxx Revision: 588247
upgpkg: gist 5.1.0-1 Modified: gist/trunk/PKGBUILD ----------+ PKGBUILD | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-01 21:28:49 UTC (rev 588246) +++ PKGBUILD 2020-03-01 21:29:01 UTC (rev 588247) @@ -3,7 +3,7 @@ # Contributor: Scott Olson <scott at scott-olson dot org> pkgname=gist -pkgver=5.0.0 +pkgver=5.1.0 pkgrel=1 pkgdesc='Potentially the best command line gister' url='https://github.com/defunkt/gist' @@ -10,15 +10,21 @@ arch=('any') license=('custom:MIT') depends=('ruby') +makedepends=('ruby-rake' 'ruby-ronn') optdepends=("xclip: put pasted gist's url into X selection automagically" "xsel: put pasted gist's url into X selection automagically") -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/defunkt/${pkgname}/archive/v${pkgver}.tar.gz) -sha512sums=('9061a34ad2237fea719c6820112fe7ebc2748e8b44d7756a831f4f54aed876a4b03c403b15d70e35818e216b2106ccd2fc6696d26eb36079d8a82f5e2c8c99c1') +source=(https://github.com/defunkt/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('7a63dd3f9c0d532890061f35f71cc7bc38d99958e1a34f1d3c6b596eaf6a2dcbb7a51ed9e8f3df961589038d5ee0391c348e636f277f7314eef26a5fafd90eac') +b2sums=('2a8aa2ee5db34510040b5dca75e81b09c57e1a2e3e4db52ad34f82859407abf8c02670a566ac26d8b5e4176abddf1201af06e0cee7d6a4d783e4ebd9043d9734') +build() { + cd ${pkgname}-${pkgver} + rake build +} + package() { cd ${pkgname}-${pkgver} - install -Dm 755 build/${pkgname} -t "${pkgdir}/usr/bin" - install -Dm 644 build/${pkgname}.1 -t "${pkgdir}/usr/share/man/man1" + PREFIX="${pkgdir}/usr" rake install install -Dm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" }