summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkulpae2015-11-02 20:30:18 +0100
committerkulpae2015-11-02 20:30:18 +0100
commitae89048f2204ceb035747f4986439992a2d39371 (patch)
treeb9f2c526ce2c4bbbea2214b6ce30e6009022eaaf
downloadaur-ae89048f2204ceb035747f4986439992a2d39371.tar.gz
reupload of my cloudruby tool
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD40
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..97714683cf4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = cloudruby-git
+ pkgdesc = Ncurses player for Soundcloud tracks in Ruby
+ pkgver = 24.8082314
+ pkgrel = 1
+ url = https://github.com/kulpae/cloudruby
+ arch = any
+ license = custom
+ makedepends = git
+ depends = ruby
+ depends = ruby-curses
+ depends = ruby-httpclient
+ depends = ruby-json_pure
+ depends = mpg123
+ optdepends = ruby-gstreamer
+ optdepends = gstreamer
+ optdepends = gst-plugins-base
+ optdepends = gst-plugins-good
+ optdepends = gst-plugins-ugly
+ provides = cloudruby
+ conflicts = cloudruby
+ source = cloudruby::git://github.com/kulpae/cloudruby.git
+ md5sums = SKIP
+
+pkgname = cloudruby-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ad00444050d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: kulpae <kulpae @ uraniumlane.net>
+
+_gitname="cloudruby"
+pkgname=$_gitname-git
+pkgver=24.8082314
+pkgrel=1
+pkgdesc="Ncurses player for Soundcloud tracks in Ruby"
+arch=(any)
+url="https://github.com/kulpae/cloudruby"
+license=(custom)
+depends=('ruby' 'ruby-curses' 'ruby-httpclient' 'ruby-json_pure' 'mpg123')
+optdepends=('ruby-gstreamer' 'gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly')
+makedepends=('git')
+provides=('cloudruby')
+conflicts=('cloudruby')
+source=($_gitname::git://github.com/kulpae/cloudruby.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+package() {
+ cd "$_gitname"
+ install -dm 755 "${pkgdir}"/usr/{bin,lib/${_gitname}/{bin,lib},share/licenses/"${pkgname}"}/
+
+ ln -s ../lib/${_gitname}/bin/cloudruby "${pkgdir}/usr/bin/cloudruby"
+
+ install -m 755 bin/cloudruby "${pkgdir}/usr/lib/${_gitname}/bin/"
+ install -m 644 lib/cloudruby.rb "${pkgdir}/usr/lib/${_gitname}/lib/"
+ install -m 644 lib/mpg123player.rb "${pkgdir}/usr/lib/${_gitname}/lib/"
+ install -m 644 lib/gstplayer.rb "${pkgdir}/usr/lib/${_gitname}/lib/"
+ install -m 644 lib/ncurses_ui.rb "${pkgdir}/usr/lib/${_gitname}/lib/"
+ install -m 644 lib/soundcloud.rb "${pkgdir}/usr/lib/${_gitname}/lib/"
+ install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ sed -i -- "s/require 'cloudruby'/require_relative '..\/lib\/cloudruby\/lib\/cloudruby'/g" "${pkgdir}/usr/bin/cloudruby"
+}
+