summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a2a95bbc2825d6590a927e3590c6096e7445f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Milk Brewster - milkii on Freenode
_pkgname=sacad
pkgver=2.1.8.r5.g835fe12
pkgname=${_pkgname}-git
pkgrel=1
pkgdesc="Smart Automatic Cover Art Downloader"
arch=('any')
url="https://github.com/desbma/${_pkgname}"
license=('MPL2')
depends=('python' 'python-setuptools' 'python-aiohttp' 'python-appdirs' 'python-bitarray' 'python-cssselect' 'python-lxml' 'python-mutagen' 'python-pillow' 'python-tqdm' 'python-fake-useragent')
makedepends=('python-pip')
provides=('sacad' 'sacad-git')
conflicts=('sacad' 'sacad-git')
source=("git+https://github.com/desbma/${_pkgname}")
md5sums=( 'SKIP' )

pkgver() {
  cd "$scrdir"
  cd "${_pkgname}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
    cd "$srcdir/${_pkgname}"
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps web_cache
    python setup.py install --root="${pkgdir}"
}