summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames An2016-07-10 00:04:36 -0400
committerJames An2016-07-10 00:04:36 -0400
commite93ecd805a0a8065c90384bc586bd501189af241 (patch)
tree2f1ae13613597b513e967afc69bde82e9d23e000
parente3863cfe7084fdf263e83ac62de59a985e811192 (diff)
downloadaur-e93ecd805a0a8065c90384bc586bd501189af241.tar.gz
Changed source to RubyGems-hosted gem and refactored PKGBUILD against current packaging guidelines.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD45
2 files changed, 26 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6c59db502136..916cdcc1cf2c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,15 @@
pkgbase = soundcli
- pkgdesc = Command line interface to stream/download songs from soundcloud.com
+ pkgdesc = CLI client for soundcloud
pkgver = 0.0.5
- pkgrel = 2
+ pkgrel = 3
url = http://soundcli.elephly.net
- arch = x86_64
- arch = i686
- license = GPLv3
- makedepends = rubygems
- depends = ruby
+ arch = any
+ license = GPL3
depends = ruby-gstreamer
depends = ruby-curb
depends = ruby-json
- depends = gstreamer0.10-good
- source = https://github.com/rekado/soundCLI/tarball/0.0.5
- md5sums = 1422280932a7e30fa3545e0a00947d99
+ source = https://rubygems.org/downloads/soundcli-0.0.5.gem
+ md5sums = 32b0ff3ef7cdfe6095a2bcb8c37b346c
pkgname = soundcli
diff --git a/PKGBUILD b/PKGBUILD
index 4139b158f165..44d6a8d3a55f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,27 @@
-# Maintainer: Ricardo Wurmus <maintainer name + @gmail.com>
+# Maintainer: James An <james@jamesan.ca>
+# Contributor: Ricardo Wurmus <maintainer name + @gmail.com>
+
pkgname=soundcli
pkgver=0.0.5
-pkgrel=2
-pkgdesc="Command line interface to stream/download songs from soundcloud.com"
-url="http://soundcli.elephly.net"
-arch=('x86_64' 'i686')
-license=('GPLv3')
-depends=('ruby' 'ruby-gstreamer' 'ruby-curb' 'ruby-json' 'gstreamer0.10-good')
-makedepends=(rubygems)
-source=(https://github.com/rekado/soundCLI/tarball/$pkgver)
-md5sums=('1422280932a7e30fa3545e0a00947d99')
-
-build() {
- # github names the directory in a funny way...
- cd $srcdir/rekado-soundCLI-1575db9
-
- msg "Configuring source..."
-
- ruby ./setup.rb config --prefix=${pkgdir}/usr \
- --siterubyver=${pkgdir}/usr/lib/ruby/site_ruby/1.9.1/ \
- --sysconfdir=${pkgdir}/etc
+pkgrel=3
+pkgdesc='CLI client for soundcloud'
+arch=('any')
+url='http://soundcli.elephly.net'
+license=('GPL3')
+depends=(ruby-gstreamer ruby-curb ruby-json)
+source=(https://rubygems.org/downloads/$pkgname-$pkgver.gem)
+#~ noextract=($pkgname-$pkgver.gem)
+md5sums=('32b0ff3ef7cdfe6095a2bcb8c37b346c')
- msg "Running setup..."
- ruby ./setup.rb setup
+prepare() {
+ # Relax dependency version restrictions to allow the latest versions.
+ zcat metadata.gz | sed 's/~>/">="/' | gzip -c - >| metadata.gz~
+ mv -f metadata.gz~ metadata.gz
+ tar -cf "$pkgname-$pkgver.new.gem" data.tar.gz metadata.gz
}
package() {
- msg "Installing files..."
- cd $srcdir/rekado-soundCLI-1575db9
- ruby ./setup.rb install
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" "$pkgname-$pkgver.new.gem"
+ rm "$pkgdir$_gemdir/cache/$pkgname-$pkgver.gem"
}