diff options
author | Wolfgang Popp | 2020-09-26 14:45:27 +0200 |
---|---|---|
committer | Wolfgang Popp | 2020-09-26 14:46:21 +0200 |
commit | ad3045bb472ad942568e6f2ef5d3409c2bc7217b (patch) | |
tree | db2f8cc642a18ae574b20e161d4abd9d903a6c57 | |
download | aur-ad3045bb472ad942568e6f2ef5d3409c2bc7217b.tar.gz |
Add files
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ade7ddaa47bc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ytcc-git + pkgdesc = Command line tool to keep track of playlists + pkgver = r229.f067673 + pkgrel = 1 + url = https://github.com/woefe/ytcc + arch = any + license = GPL3 + makedepends = git + makedepends = gettext + makedepends = python-setuptools + depends = python-click + depends = youtube-dl + optdepends = mpv + source = ytcc-git::git+https://github.com/woefe/ytcc.git + sha256sums = SKIP + +pkgname = ytcc-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b8f6bf4c979d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Wolfgang Popp <mail@wolfgang-popp.de> +pkgname=ytcc-git +pkgver=r229.f067673 +pkgrel=1 +pkgdesc="Command line tool to keep track of playlists" +arch=('any') +url="https://github.com/woefe/ytcc" +license=('GPL3') +depends=('python-click' 'youtube-dl') +optdepends=('mpv') +makedepends=('git' 'gettext' 'python-setuptools') +source=("$pkgname::git+https://github.com/woefe/ytcc.git") +sha256sums=('SKIP') + +pkgver(){ + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 completions/zsh/_ytcc "${pkgdir}/usr/share/zsh/site-functions/_ytcc" + install -Dm644 completions/fish/ytcc.fish "${pkgdir}/usr/share/fish/vendor_completions.d/ytcc.fish" +} + +# vim:set ts=2 sw=2 et: |