summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg2014-02-25 17:03:17 +0100
committerJohannes Löthberg2015-06-08 12:07:36 +0200
commitb0047bca51c8d9044ce4b5ff2eae7a92925f7f74 (patch)
treee3c42b99f22d3e231d921648a78a236aa775dda0
downloadaur-b0047bca51c8d9044ce4b5ff2eae7a92925f7f74.tar.gz
Import mps-youtube-git
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD27
-rw-r--r--mps-youtube-git.install7
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..44247e08ea1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 13:54:07 UTC 2015
+pkgbase = mps-youtube-git
+ pkgdesc = Terminal based YouTube jukebox with playlist management
+ pkgver = 0.01.32.r2.g7f0feac
+ pkgrel = 1
+ url = https://github.com/np1/mps-youtube
+ install = mps-youtube-git.install
+ arch = any
+ license = GPL3
+ depends = python
+ depends = python-pafy-git
+ optdepends = mpv: Alternative to mplayer for playback
+ optdepends = mplayer: Alternative to mpv for playback
+ conflicts = mps-youtube
+ source = git+https://github.com/np1/mps-youtube.git
+ source = mps-youtube-git.install
+ md5sums = SKIP
+ md5sums = 60f96ac1aa29a2024d2213004636bee8
+
+pkgname = mps-youtube-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f997ea9ee4f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
+
+pkgname=mps-youtube-git
+pkgver=0.01.32.r2.g7f0feac
+pkgrel=1
+pkgdesc="Terminal based YouTube jukebox with playlist management"
+arch=('any')
+url='https://github.com/np1/mps-youtube'
+license=('GPL3')
+depends=('python' 'python-pafy-git')
+optdepends=('mpv: Alternative to mplayer for playback'
+ 'mplayer: Alternative to mpv for playback')
+conflicts=('mps-youtube')
+install=mps-youtube-git.install
+source=('git+https://github.com/np1/mps-youtube.git' 'mps-youtube-git.install')
+md5sums=('SKIP'
+ '60f96ac1aa29a2024d2213004636bee8')
+
+pkgver() {
+ cd mps-youtube
+ git describe --tags --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+package() {
+ cd mps-youtube
+ python setup.py install --root="$pkgdir" --optimize=1
+}
diff --git a/mps-youtube-git.install b/mps-youtube-git.install
new file mode 100644
index 00000000000..96700c67d87
--- /dev/null
+++ b/mps-youtube-git.install
@@ -0,0 +1,7 @@
+post_install () {
+ printf "==> Remember to install either mpv or mplayer for playback support.\n"
+}
+
+post_upgrade () {
+ post_install $1
+}