summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d97a0a908ac485227e164631573eede2095e794c (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
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Deepjyoti <deep.barman30@gmail.com>
pkgname=python-youtube-search-git

pkgver() {
  cd "youtube_search"
    printf '%s.r%s.%s' \
    "$(grep version= setup.py | sed 's/^\s*version="\(.*\)".*/\1/')" \
    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgver=1.1.1.r31.e021809
pkgrel=1

pkgdesc="Perform YouTube video searches without the API"
arch=("any")
url="https://github.com/joetats/youtube_search"
license=('MIT')
depends=(
		"python>=3.6"
		"python-requests"
		)
makedepends=("git" "python-setuptools")
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/joetats/youtube_search.git")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

build() {
	cd "youtube_search"
	python3 setup.py build
}

package() {
	cd "youtube_search"
	python3 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}