diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d5b0b8ffb6eb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Daniel Maslowski <info@orangecms.org> + +_pyname=bandcamp-dl +pkgname=bandcamp-dl-git +pkgver=v0.0.8.12.r4.g4a5e14b +pkgrel=1 +pkgdesc="download audio from BandCamp.com" +arch=('any') +url="https://github.com/iheanyi/bandcamp-dl" +license=('Unlicense') +makedepends=('git') +depends=( + 'python' + 'python-beautifulsoup4' + 'python-chardet' + 'python-demjson-git' + 'python-docopt' + 'python-mock' + 'python-mutagen' + 'python-requests' + 'python-unicode-slugify' + 'python-setuptools' +) +provides=("$_pyname") +conflicts=("$_pyname") +options=(!emptydirs) +source=(git://github.com/iheanyi/bandcamp-dl.git) +sha512sums=('SKIP') + +pkgver() { + cd "$_pyname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$_pyname" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt" +} + +# vim:set ts=2 sw=2 et: |