| 1 |
# Maintainer: André Koch-Kramer <[email protected]> |
| 2 |
|
| 3 |
pkgname=instaloader |
| 4 |
pkgver={{version}} |
| 5 |
pkgrel=1 |
| 6 |
pkgdesc="Command line tool to download pictures, videos and metadata from Instagram" |
| 7 |
arch=('any') |
| 8 |
url="https://instaloader.github.io/" |
| 9 |
license=('MIT') |
| 10 |
groups=() |
| 11 |
depends=( |
| 12 |
python |
| 13 |
python-requests |
| 14 |
) |
| 15 |
makedepends=( |
| 16 |
python-build |
| 17 |
python-installer |
| 18 |
python-setuptools |
| 19 |
python-wheel |
| 20 |
) |
| 21 |
optdepends=( |
| 22 |
'python-browser-cookie3: Import session cookies from browser' |
| 23 |
) |
| 24 |
options=('!emptydirs') |
| 25 |
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/instaloader/instaloader/tar.gz/v$pkgver) |
| 26 |
sha512sums=('{{hash}}') |
| 27 |
|
| 28 |
build() { |
| 29 |
cd "$srcdir/$pkgname-$pkgver" |
| 30 |
python -m build --wheel --no-isolation |
| 31 |
} |
| 32 |
|
| 33 |
package() { |
| 34 |
cd "$srcdir/$pkgname-$pkgver" |
| 35 |
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE |
| 36 |
python -m installer --destdir="$pkgdir" dist/*.whl |
| 37 |
} |