summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4c8488c8de8715fd15ab8e0e5f3ea340faabe4f (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
# Maintainer: Łukasz Pożarlik <lpozarlik@gmail.com>

pkgname=('python-django-polymorphic')
pkgdesc="Polymorphic Models for Django"
pkgver=3.1.0
pkgrel=2
url="https://github.com/django-polymorphic/django-polymorphic"
license=('BSD')
arch=('any')
makedepends=('python' 
  'python-setuptools')
depends=('python-django')
source=("https://files.pythonhosted.org/packages/4e/06/f43d3d7e690a6bd90c0e300d824f5aad0e9840cfd8d5bb164fd06ef6bcfc/django-polymorphic-${pkgver}.tar.gz")
sha256sums=('d6955b5308bf6e41dcb22ba7c96f00b51dfa497a8a5ab1e9c06c7951bf417bf8')

build() {
  cd ${srcdir}/django-polymorphic-${pkgver}
  python setup.py build
}

package_python-django-polymorphic() {
  cd ${srcdir}/django-polymorphic-${pkgver}
  python setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

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