summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84b5e422882f2a9ebf2c53f803a716d1073fc5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Contributor: Pieter Lenaerts <pieter dot aj dot lenaerts gmail>

pkgname=python-jpegtran-cffi
pkgver=0.5.2
pkgrel=5
pkgdesc='Fast, (mostly) lossless JPEG transformations with Python'
arch=('any')
url='https://github.com/jbaiter/jpegtran-cffi'
license=('MIT')
source=("https://github.com/jbaiter/jpegtran-cffi/archive/v${pkgver}.tar.gz")
sha256sums=('1d5f10ca9dc86be8ca0ead2745e13b1c9e14f3812ebc4d90926a6836ec7fffc8')
makedepends=('python-setuptools')
depends=('libjpeg-turbo' 'python-cffi')

package() {
  cd "$srcdir"/jpegtran-cffi-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et: