summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ecfd3d850dacf479cff6e1c6c9350e1cce44fb8 (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
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>

_name='Google-Images-Search'
pkgname='python-google-images-search'
pkgver='1.3.3'
pkgrel='2'
pkgdesc="Search for image using Google Custom Search API and resize & crop the image afterwords"
arch=("any")
url="https://github.com/arrrlo/${_name}"
makedepends=('python' 'python-setuptools')
depends=('python-colorama' 'python-pyfiglet' 'python-termcolor' 'python-click' 'python-six'
	 'python-requests' 'python-pillow' 'python-resize-image' 'python-google-api-python-client')
license=('MIT')
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=('b658f191446471d4513b76fff152e7e4ae4f9a89bba4cee4c470f3081f896652')

prepare() {
  cd "${srcdir}/${_name}-${pkgver}"
  sed -ri 's|Pillow~=7.1.0|Pillow>=7.1.0|g' "setup.py"
}

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

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install -O1 --root="${pkgdir}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}