summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1327b1ecb88bc4ce43a160e26c8552de42cd9f03 (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: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=facebook-cli
pkgver=1.7.1
pkgrel=1
pkgdesc='Facebook command line tool'
arch=('any')
url='https://github.com/specious/facebook-cli'
license=('ISC')
depends=('ruby'
     'ruby-json'
     'ruby-gli'
     'ruby-jsonpath'
     'ruby-koala')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.gem::https://rubygems.org/downloads/$pkgname-$pkgver.gem")
noextract=('$pkgname-$pkgver.gem')
sha256sums=('fb5f70bec4bff21c1f1f290f2bc85567b8616db6c84afdc9e584a06b367f339a')

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