summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwenLiangcan2015-06-08 23:40:27 +0800
committerwenLiangcan2015-06-08 23:40:27 +0800
commit60df67c1fd0ae39079aaf2be46e3750cec456b75 (patch)
tree2df54ee9dac4de00822af4bf4345033fd6504d40
downloadaur-60df67c1fd0ae39079aaf2be46e3750cec456b75.tar.gz
pyfm 0.2.4-1.
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD32
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bb6be206fa5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = pyfm
+ pkgdesc = A Tiny and Smart Terminal Player of douban.fm.
+ pkgver = 0.2.4
+ pkgrel = 1
+ url = https://github.com/skyline75489/pyfm
+ arch = any
+ license = MIT
+ depends = mpg123
+ optdepends = libnotify: for system notification
+ source = https://pypi.python.org/packages/source/p/pyfm/pyfm-0.2.4.tar.gz
+ sha512sums = 34600528dfe79d28bb0879890b9bd3a26d69afb99deb88bd5a97ba66c8939cbff06028a6d59f88357807400fbe33a6ffe18b149244985e633f5a4067c4ddb91c
+
+pkgname = pyfm
+ depends = mpg123
+ depends = python-requests
+ depends = python-urwid
+
+pkgname = python2-pyfm
+ depends = mpg123
+ depends = python2-requests
+ depends = python2-urwid
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4029f4fc6b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: wenLiangcan <boxeed at gmail dot com>
+
+pkgname=('pyfm' 'python2-pyfm')
+pkgver=0.2.4
+pkgrel=1
+pkgdesc="A Tiny and Smart Terminal Player of douban.fm."
+url="https://github.com/skyline75489/pyfm"
+depends=('mpg123')
+optdepends=('libnotify: for system notification')
+license=('MIT')
+arch=('any')
+source=("https://pypi.python.org/packages/source/p/pyfm/pyfm-${pkgver}.tar.gz")
+sha512sums=('34600528dfe79d28bb0879890b9bd3a26d69afb99deb88bd5a97ba66c8939cbff06028a6d59f88357807400fbe33a6ffe18b149244985e633f5a4067c4ddb91c')
+
+prepare() {
+ cp -a "${srcdir}/pyfm-${pkgver}"{,-python2}
+}
+
+package_pyfm() {
+ depends+=('python-requests' 'python-urwid')
+ makedepends=('python-setuptools')
+ cd "pyfm-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-pyfm() {
+ depends+=('python2-requests' 'python2-urwid')
+ makedepends=('python2-setuptools')
+ cd "pyfm-${pkgver}-python2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/pyfm"{,2}
+}