summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1bee29f930d5f9e9222cc65ae5819ccd9fa1f770 (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
29
30
31
32
# Maintainer: Prayz Jomba <prayzjomba@protonmail.com>
pkgname=ywatch-git
pkgver=0.6.3
pkgrel=2
pkgdesc="Watch youtube videos with mpv while saving the video to disk."
arch=(any)
url="https://github.com/prayzjomba/ywatch.git"
license=('GPL')
depends=('youtube-dl' 'xclip' 'mpv' 'python-rich' 'python-pyperclip' 'python-func-timeout')
makedepends=('git' 'make' 'python-setuptools')
provides=(yw)
install=
changelog=
source=("$pkgname"::"git+$url#branch=$pkgver")
md5sums=('SKIP')

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


build() {
	cd "$pkgname"
	python setup.py build
}


package() {
	cd "$pkgname"
	python setup.py install --root="$pkgdir" --optimize=1
}