summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f65a9edd0c9a6f91466ecc67611eba0d2dc9ac70 (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
25
26
27
28
# Maintainer: noraj <printf %s 'YWxleGFuZHJlLnphbm5pQGV1cm9wZS5jb20='|base64 -d>

pkgname=pixelchart
pkgver=1.2.0
pkgrel=2
pkgdesc='Map binary data into a beautiful chart'
arch=('any')
url='https://noraj.github.io/PixelChart/'
license=('MIT')
depends=('ruby' 'ruby-paint' 'ruby-docopt' 'libvips' 'imagemagick' 'ruby-rmagick' 'ruby-ruby-vips')
options=(!emptydirs)
source=("https://rubygems.org/downloads/$pkgname-$pkgver.gem")
noextract=("$pkgname-$pkgver.gem")
b2sums=('e1673f5d50916f98820e36a1cd46cbeef404c83a6c0b9b4288d779e4b7ca14bb5a47a32072e030549bdd8bbba24a5225a0b6ffd151f96655e36175217731dc44')

package() {
  _gemdir="$(ruby -e'puts Gem.default_dir')"

  gem install --ignore-dependencies --no-user-install --no-document \
    -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $pkgname-$pkgver.gem

  rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem"
  find "$pkgdir/$_gemdir/extensions/" -name *.so -delete

  install -D -m644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/LICENSE.txt" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}