summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 730298013bab29545468626a0c072809b537235e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Benjamin Abendroth <braph93@gmx.de>

pkgname=ektoplayer
pkgver=0.1.22
pkgrel=1
pkgdesc='play and download techno music from ektoplazm.com'
arch=(any)
url='http://github.com/braph/ektoplayer'
license=(GPL)
depends=(ruby ruby-sqlite3 ruby-nokogiri ruby-ncursesw mpg123)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$pkgname-$pkgver.gem)
noextract=($pkgname-$pkgver.gem)
sha1sums=('c9f11b528a89a8e6d6a20132aab8e6be5c2625b6')

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"
}