summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 668d27027b8f06a99b6d56683dc76038db664c8e (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

_name=pyfavicon
pkgname=python-$_name
pkgver=0.1.1
pkgrel=2
pkgdesc="Async favicon fetcher"
arch=(any)
url="https://pypi.org/pypi/$_name"
license=('MIT')
depends=('python-aiohttp' 'python-pillow' 'python-beautifulsoup4')
makedepends=('python-setuptools')
source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
        'LICENSE')
sha256sums=('fdd5a222f08488824877d8a00a272657c4e66bbe115520d1d68e6d9892ba8e97'
            'a689f5eb9e5b1e7d691031376a8be4961e551ee2173e5f1dc65b335d20469197')

build() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dvm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}