summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordeepjyoti302019-11-16 11:08:15 +0530
committerdeepjyoti302019-11-16 11:08:15 +0530
commitebbe6d11f24235818b1745ceb571607e8c626320 (patch)
treefad3e0f4a14502873616f2938dd24a2673a61003
parent9e24236b96e949242d70e200ba6c7ed6bd9e72bf (diff)
downloadaur-ebbe6d11f24235818b1745ceb571607e8c626320.tar.gz
update: Ask the user to install itunespy.
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD2
-rw-r--r--ytmdl.install16
3 files changed, 18 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7296665fc13..315aec25c8f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = ytmdl
pkgver = 2019.11.16
pkgrel = 0
url = https://github.com/deepjyoti30/ytmdl
+ install = ytmdl.install
arch = any
license = MIT
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index c6f0481364b..92411f62229 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ conflicts=()
replaces=()
backup=()
options=()
-install=
+install=ytmdl.install
changelog=
source=("https://github.com/deepjyoti30/ytmdl/archive/2019.11.16.tar.gz")
noextract=()
diff --git a/ytmdl.install b/ytmdl.install
new file mode 100644
index 00000000000..a89132344ce
--- /dev/null
+++ b/ytmdl.install
@@ -0,0 +1,16 @@
+prompt_itunespy_install() {
+ # Echo to the user that they need to install itunespy manually
+ echo -e "\033[0;31m"
+ echo ""
+ echo "Please make sure you install itunespy from https://pypi.org/project/itunespy/ since it is not available in AUR."
+ echo -e "\033[0m"
+ echo ""
+}
+
+post_install() {
+ prompt_itunespy_install
+}
+
+post_upgrade() {
+ prompt_itunespy_install
+} \ No newline at end of file