summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecc04a8883ceb1d176da767dc0e1a70d9b1a4b24 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: sausageandeggs <sausageandeggs@archlinux.us>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>

pkgname=gnofract4d
pkgver=4.3
pkgrel=4
pkgdesc='Create beautiful fractal images'
arch=(any)
url=https://github.com/fract4d/gnofract4d
license=(BSD)
depends=(gtk3 libjpeg libpng python-cairo python-gobject)
makedepends=(python-build python-installer python-wheel python-setuptools)
optdepends=('ffmpeg: to create videos')
checkdepends=(python-pytest)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('8fb22fd626b3452957802abe9fba311d495481ddf91a2ecf8a41fc38377639e3')

build() {
  cd $pkgname-$pkgver
  python -m build --wheel --no-isolation
}

check() {
  cd $pkgname-$pkgver
  ./test.py
}

package() {
  cd $pkgname-$pkgver
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm644 doc/$pkgname.1 -t "$pkgdir/usr/share/man/man1"
  python -m installer --destdir="$pkgdir" dist/*.whl
}