summaryrefslogtreecommitdiff
path: root/pcr/python2-django-extensions/PKGBUILD
blob: 2ce9c8e4c165affd7d26a52408659dbf998e0251 (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
37
38
39
40
# Contributor (Arch): Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
# Contributor (Arch): Dominik Kozaczko <dominik@kozaczko.info>
# Contributor (Arch): Alper Kanat <alperkanat@raptiye.org>
# Contributor (Arch): Apkawa <apkawa@gmail.com>
# Contributor (Arch): Schnouki <thomas.jost@gmail.com>
# Maintainer        : Omar Vega Ramos <ovruni@gnu.org.pe>
#
# namcap warns that python2-django and python2-six are unnecessary dependencies.
# This is untrue.
#
# This package was formerly named `django-extensions`. As a result, this package
# must provide and conflict with that package.

pkgname=python2-django-extensions
_pkgname=django-extensions
pkgver=1.5.2
pkgrel=1
pkgdesc='A collection of custom extensions for the Django Framework.'
arch=(any)
url='http://github.com/django-extensions/django-extensions'
license=(MIT)
depends=(python2-django python2-six)
makedepends=(python2-setuptools)
optdepends=(
    'graphviz: to graph Django models'
    'python2-werkzeug: to use the Werkzeug debugger in the embedded web server'
)
provides=(django-extensions)
conflicts=(django-extensions)
options=(!emptydirs)
source=("https://github.com/${_pkgname}/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('dd719ca75fe69803a55f7cd7e0f0c6563eb4e0bf68acfc352ffb58fe708722de')

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

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