Skip to content

Instantly share code, notes, and snippets.

@MiuKaShi
Created September 18, 2022 06:26
Show Gist options
  • Save MiuKaShi/39e108fd4acd66d533447c9bebe7c2ea to your computer and use it in GitHub Desktop.
Save MiuKaShi/39e108fd4acd66d533447c9bebe7c2ea to your computer and use it in GitHub Desktop.
yutto-PKGBUILD
# yutto-git: download with sub option, thanks to zjns
pkgname=yutto-git
_gitname=yutto
pkgver=r319.9a5c117
pkgrel=1
pkgdesc='一个可爱且任性的 B 站视频下载器'
arch=('any')
url='https://github.com/zjns/${_gitname}'
license=('GPL3')
depends=(
'python-aiohttp'
'python-aiofiles'
'python-biliass'
'python-dicttoxml'
'ffmpeg'
)
makedepends=('python-pip' 'python-poetry')
optdepends=('python-uvloop: fast asyncio event loop')
source=(git+"https://github.com/zjns/${_gitname}.git#branch=extended")
sha256sums=('SKIP')
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_gitname/
poetry build --format wheel
}
package() {
cd $_gitname/
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
rm -rf "$pkgdir/usr/lib/"*"/site-packages/tests" || true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment