# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> _pkgname='wayback-machine-archiver' pkgname="${_pkgname}-git" pkgver=1.9.0.r1.g1dfe329 pkgrel=2 pkgdesc='Submit web pages to the Wayback Machine for archiving' arch=('any') url='https://github.com/agude/wayback-machine-archiver' _url_pypi='https://pypi.org/project/wayback-machine-archiver' license=('MIT') depends=('python-requests') makedepends=('git' 'python-setuptools') provides=("${_pkgname}") conflicts=("${_pkgname}") source=("git+${url}.git") sha256sums=('SKIP') pkgver() { git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${_pkgname}" python setup.py build } package() { cd "${_pkgname}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}" install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${_pkgname}" } # vim: ts=2 sw=2 et: