summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9d86739a5de0e633c048fddd2b1b3de9da5a69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer : Darshit Shah <darnir@gmail.com>
# Contributor : Gustavo Alvarez <sl1pkn07@gmail.com>
#
pkgname=python-sendfile
_pkgname=pysendfile
pkgver=2.0.1
pkgrel=1
pkgdesc="A Python interface to sendfile(2)"
url="https://github.com/giampaolo/pysendfile"
license=('MIT')
arch=('i686' 'x86_64')
depends=('python')
makedepends=('python-distribute')
source=("https://github.com/giampaolo/pysendfile/archive/release-${pkgver}.tar.gz")
md5sums=('928b468e0676c3f90a824b472fbaf4b3')

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