summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3771efbcbde7f253e4c429e08fe2a2f49e4401e6 (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 : David Beley <dbeley@protonmail.com>
pkgname=youtube_extract-git
pkgver=1.0
pkgrel=1
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgdesc="Extract metadata for all videos from a youtube channel into a csv file."
arch=('any')
url="https://github.com/dbeley/${pkgname%-git}"
license=('MIT')
depends=(
        'python'
        'python-setuptools'
        'youtube-dl'
        )
source=("git+https://github.com/dbeley/${pkgname%-git}")
md5sums=("SKIP")

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

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