diff options
author | sunplan | 2021-02-08 06:02:16 -0800 |
---|---|---|
committer | sunplan | 2021-02-08 06:02:16 -0800 |
commit | 9d228a28947bf6461379e25768d5e3002e8605de (patch) | |
tree | eab52c735f29c678505ec985af8d7e16de7cefc6 /PKGBUILD | |
download | aur-9d228a28947bf6461379e25768d5e3002e8605de.tar.gz |
initialize with v1.8.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..edd794e06669 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: sunplan +pkgname=nndownload +pkgver=1.8.1 +pkgrel=1 +pkgdesc='Download and process links from Niconico (nicovideo.jp)' +arch=('any') +url='https://github.com/AlexAplin/nndownload' +license=('MIT') +depends=('python' + 'python-aiohttp' + 'python-aiohttp-socks' + 'python-beautifulsoup4' + 'python-requests' + 'python-mutagen') +makedepends=('python-setuptools' + 'dos2unix') +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") +sha256sums=('59216db90355cb13c3e9db10cef808fe6ce71b3518db96dd6bd43c9539e631b3') + +prepare() { + # > nndownload.py + # /usr/bin/env: 'python\r': No such file or directory + dos2unix $pkgname-$pkgver/nndownload/nndownload.py +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +}
\ No newline at end of file |