summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9764a03bf4a4ab06c03f6eae27d3105a0ff6aba2 (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
# Maintainer: Julien Taverna <jujudusud -at- gmail -dot- com>

pkgname="python-aggdraw"
_pkgname="aggdraw"
pkgdesc="Module to implements the basic WCK 2D Drawing Interface on top of the AGG library."
pkgver=1.3.18
pkgrel=1
arch=('x86_64')
url="https://github.com/pytroll/aggdraw"
license=('MIT')
depends=('python' 'freetype2')
makedepends=('python-setuptools')
source=("https://github.com/pytroll/aggdraw/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('b7f7ea61bcc3cbacb7502307b393dd1d843b9b2cf29c621edaadb4ae1ee47ec8')


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

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="$pkgdir" --skip-build --optimize=1

  # license
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}