summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3192d9329c1f12b77691cd0a5f08732925c57a53 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Yuuta Liang <yuuta@yuuta.moe>
pkgname=python-favicons
pkgver=0.0.9
pkgrel=1
epoch=
pkgdesc="Favicon generator for Python 3 with strongly typed sync & async APIs, CLI, & HTML generation"
arch=(any)
url="https://github.com/checktheroads/favicons"
license=('BSD')
groups=()
depends=('python' 'python-pillow' 'python-rich' 'python-svglib' 'python-typer')
makedepends=('python-setuptools')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
md5sums=('19091796d3c4a339be590ed87875ee4c')
validpgpkeys=()

prepare() {
	cd "$_name-$pkgver"
}

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

check() {
	cd "$_name-$pkgver"
}

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