summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGötz Christ2018-09-21 14:58:10 -0500
committerGötz Christ2018-09-21 15:44:44 -0500
commitf3faf00d20da596d2ca737d6f4a5faf46f241193 (patch)
tree1add3a99638c1ff4910753fc6fc5365374d44fa6 /PKGBUILD
downloadaur-pytify.tar.gz
First commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ea839a68e00
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: goetzc
+
+pkgname=pytify
+pkgver=3.5.1
+pkgrel=1
+pkgdesc='A Python CLI application for controlling Spotify.'
+arch=(any)
+url='https://github.com/bjarneo/Pytify'
+license=(MIT)
+makedepends=(python)
+depends=(python-spotipy python-dbus python-prompt_toolkit)
+options=(!emptydirs)
+source=($pkgname-$pkgver.tar.gz::https://github.com/bjarneo/${pkgname}/archive/v${pkgver}.tar.gz)
+md5sums=('d94046956e9799fc34970297e7f9f020')
+
+prepare() {
+ cd "Pytify-${pkgver}"
+ sed -i \
+ -e 's/prompt-toolkit==1.0/prompt-toolkit>=1.0/' \
+ -e 's/requests ~= 2.4.3/requests>=2.4.3/' \
+ -e 's/spotipy~=2.3.8/spotipy>=2.4.4/' \
+ setup.py
+}
+
+build() {
+ cd "Pytify-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "Pytify-${pkgver}"
+ python setup.py install --root="$pkgdir/" --skip-build --optimize=1
+}