diff options
author | caltlgin | 2020-09-07 07:46:11 +1200 |
---|---|---|
committer | caltlgin | 2020-09-07 07:46:11 +1200 |
commit | 1cfba85dd73883ee1fcd97a290bb4914f92a93a7 (patch) | |
tree | b5a8b1b8f722b61818202eddbedd342f24782460 | |
download | aur-1cfba85dd73883ee1fcd97a290bb4914f92a93a7.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4664c4ca0376 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = youtube-tool + pkgdesc = CLI tool to extract comments, subtitles or livechat content from a youtube video + pkgver = 1.0.5 + pkgrel = 1 + url = https://github.com/nlitsme/youtube_tool + arch = any + license = MIT + makedepends = python-setuptools + depends = python + provides = yttool + source = https://files.pythonhosted.org/packages/source/y/youtube_tool/youtube_tool-1.0.5.tar.gz + source = youtube_tool-1.0.5-LICENSE::https://github.com/nlitsme/youtube_tool/raw/master/LICENSE + sha256sums = ae8490dfdc41260cc9e1c53356a61954d10b34651150245730ff244eb584f9eb + sha256sums = SKIP + +pkgname = youtube-tool + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..908889cc276f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='youtube_tool' +pkgname="${_pkgname/_/-}" +pkgver=1.0.5 +pkgrel=1 +pkgdesc='CLI tool to extract comments, subtitles or livechat content from a youtube video' +arch=('any') +url='https://github.com/nlitsme/youtube_tool' +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +provides=('yttool') +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + "${_pkgname}-${pkgver}-LICENSE::${url}/raw/master/LICENSE") +sha256sums=('ae8490dfdc41260cc9e1c53356a61954d10b34651150245730ff244eb584f9eb' + 'SKIP') + +build() { + cd "${_pkgname}-${pkgver}" + python setup.py build +} + +package() { + install -Dm644 "${_pkgname}-${pkgver}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd "${_pkgname}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' +} + +# vim: ts=2 sw=2 et: |