summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7f26f75ef40702a6c769c6a1a03b77db6069916 (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
pkgname="youtube-cli"
pkgver=1.2
pkgrel=1
pkgdesc="A cli client to play audio from youtube with caching"
arch=("x86_64")
url="https://github.com/uditkarode/youtube-cli"
license=('MIT')
depends=('youtube-dl' 'mpv' 'git' 'python')
source=(${pkgname}::git+https://github.com/uditkarode/youtube-cli.git)
md5sums=('SKIP')

build() {
	cd "$pkgname"
	if [ -d "/home/${USER}/.songs/" ]; then
		echo "DIR already exists"
	else
		mkdir ~/.songs	
	fi
}

package() {
	install -Dm755 "${pkgname}/youtube-cli" "${pkgdir}/usr/bin/youtube-cli"
	install -Dm755 "${pkgname}/ytcli" "${pkgdir}/usr/bin/ytcli"
	chmod a+x "${pkgdir}/usr/bin/youtube-cli" "${pkgdir}/usr/bin/ytcli"
}