summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd54a7a7da429c4de45ba0b2d82a79b783d76699 (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
33
# Maintainer: Prayz Jomba <prayzjomba@protonmail.com>
pkgname=ywatch-git
pkgver=0.6.3
pkgrel=1
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 "0.6.3.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
}