summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60c2da789813d5e451527e37c67691f4343aac24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: 0fflineuser <0fflineuser@cock.li>
pkgname="magic-tape.sh-git"
pkgver=r152.ea64473
pkgrel=3
pkgdesc="Magic-tape is an image supporting fuzzy finder command line interface YouTube client."
arch=('x86_64')
url="https://gitlab.com/christosangel/magic-tape.git"
license=('GPL-2.0-or-later')
depends=('yt-dlp' 'bash>=4.2' 'curl' 'fzf' 'mpv' 'jq' 'xclip' 'dmenu' 'rofi')
install=magic-tape.install
makedepends=('git')
optdepends=('kitty: Image Support' 'chafa: Image Support' 'ueberzug: Image Support' 'ueberzugpp: Image Support')
source=("${pkgname}::git+https://gitlab.com/christosangel/magic-tape.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd "$pkgname"
  mkdir -p "$pkgdir/usr/share/magic-tape/"
  cp -r png/ "$pkgdir/usr/share/magic-tape/"
  install -Dm644 "magic-tape.conf" "$pkgdir/etc/magic-tape.conf"
  install -Dm755 "magic-tape.sh" "$pkgdir/usr/bin/magic-tape.sh"
}