summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46b8d6c1585bbb562d11ba35149eba13335f2d77 (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: Hanatomizu <chart11from21 at outlook dot com>

_pkgname=heif-convert
pkgname=python-heif-convert
pkgver=1.1.1
pkgrel=2
pkgdesc="Multi-Platform command line tool written in Python to convert HEIF images"
arch=('any')
url='https://github.com/NeverMendel/heif-convert'
license=('MIT')
depends=(
    'python>=3.3'
    'libheif'
    'python-pillow'
    'python-pillow_heif'
)
makedepends=('python-setuptools')
checkdepends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/NeverMendel/heif-convert/archive/v$pkgver.tar.gz")
sha256sums=('4af07f06bf278c6aa5c0aaacfb2b7aa5bc6aa6fbf9e64d90529c8d408ffbaca5')

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

check() {
  cd "$_pkgname-$pkgver"
  python setup.py test
}

package() {
  cd "$_pkgname-$pkgver"
  python setup.py install --optimize=1 --root="${pkgdir}/"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}