summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f2e698aa18fc80d7650a2a002d113de440a769b (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
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>
# Former Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
# Contributor: Beej Jorgensen <beej@beej.us>

pkgname=python2-pypng
pkgver=0.0.16
pkgrel=2
pkgdesc="Python 2 module to decode and encode PNG files"
arch=('any')
url="https://github.com/drj11/pypng"
license=('MIT')
depends=('python2')
makedepends=('python2' 'python2-setuptools')
source=(https://github.com/drj11/pypng/archive/pypng-${pkgver}.tar.gz)
sha1sums=('656da1a46b82689154760b1863d3677472321c39')

package() {
  cd "$srcdir/pypng-pypng-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1

  install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname"
}

# vim:set ts=2 sw=2 et: