summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d922db63754846b364e283021e42fcb7361ad9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: gardenapple <mailbox@appl.garden>

_gemname=neocities
pkgname=neocities-cli
pkgver=0.0.18
pkgrel=2
pkgdesc='(Official) neocities.org CLI and API client'
arch=('any')
url='https://neocities.org/cli'
license=('MIT')
depends=('ruby' 'ruby-rake-12' 'ruby-httpclient-fixcerts' 'ruby-pastel-0.7.2' 'ruby-tty-table-0.10' 'ruby-tty-prompt-0.12')
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=('7c7dc5415b23026b2674320b912bbcb5c48f9dd032af26e89bfde7c31ef1dbc1')

package() {
	local _gemdir="$(ruby -e'puts Gem.default_dir')"
	gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
	rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"

	rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext"
	find "$pkgdir$_gemdir/extensions/" -name "gem_make.out" -exec rm {} +
}