summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark2023-12-06 17:44:16 +0100
committerMark2023-12-06 17:44:16 +0100
commitef668dbd863f801739a2ba1d6042ed9c9ce75c46 (patch)
tree6d8bb82cf5bbf6b22217bd4dbce6f5abf1fe23c4
parent6701a0dd225125fdae53aae17ddb93943b36efaf (diff)
downloadaur-ef668dbd863f801739a2ba1d6042ed9c9ce75c46.tar.gz
Version bump to 4.7 and changed the disclaimer
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD7
-rw-r--r--ani-cli.install18
3 files changed, 25 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ada96012bce8..9cee600f1554 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = ani-cli
pkgdesc = A cli to browse and watch anime.
- pkgver = 4.6
+ pkgver = 4.7
pkgrel = 1
url = https://github.com/pystardust/ani-cli
+ install = ani-cli.install
arch = any
license = GPL3
depends = grep
@@ -13,7 +14,7 @@ pkgbase = ani-cli
depends = ffmpeg
depends = fzf
optdepends = vlc: An alternative video player
- source = ani-cli-4.6.tar.gz::https://github.com/pystardust/ani-cli/archive/refs/tags/v4.6.tar.gz
- sha256sums = cdb02cb5d02076a940fb4605caa180d117061c19701e37783059d44edaafd875
+ source = ani-cli-4.7.tar.gz::https://github.com/pystardust/ani-cli/archive/refs/tags/v4.7.tar.gz
+ sha256sums = 2863952146ec15d3c755d40322dc93ecb670331f7a8004a659c5f82525f087ca
pkgname = ani-cli
diff --git a/PKGBUILD b/PKGBUILD
index db5e8748e07f..b8d680f48b50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Mark <mark at sgtxd dot de >
pkgname='ani-cli'
-pkgver=4.6
+pkgver=4.7
pkgrel=1
pkgdesc="A cli to browse and watch anime."
arch=('any')
@@ -9,11 +9,10 @@ license=('GPL3')
depends=('grep' 'sed' 'curl' 'mpv' 'aria2' 'ffmpeg' 'fzf')
optdepends=('vlc: An alternative video player')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pystardust/ani-cli/archive/refs/tags/v${pkgver}.tar.gz")
-sha256sums=('cdb02cb5d02076a940fb4605caa180d117061c19701e37783059d44edaafd875')
+sha256sums=('2863952146ec15d3c755d40322dc93ecb670331f7a8004a659c5f82525f087ca')
+install="$pkgname.install"
package() {
- echo "Disclaimer: This project is to be used at the user's own risk, based on their government and laws."
-
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "./ani-cli" "$pkgdir/usr/bin/ani-cli"
install -Dm644 "./ani-cli.1" "$pkgdir/usr/share/man/man1/ani-cli.1"
diff --git a/ani-cli.install b/ani-cli.install
new file mode 100644
index 000000000000..8891e16912a5
--- /dev/null
+++ b/ani-cli.install
@@ -0,0 +1,18 @@
+msg_yellow() {
+ printf "${YELLOW}==>${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
+}
+
+ALL_OFF="$(tput sgr0)"
+BOLD="$(tput bold)"
+YELLOW="${BOLD}$(tput setaf 3)"
+
+post_install() {
+ echo
+ msg_yellow "Disclaimer: This project is to be used at the user's own risk, based on their government and laws."
+ echo
+}
+
+post_upgrade() {
+ post_install
+}
+