summaryrefslogtreecommitdiff
path: root/pcr/python2-django-tagging/PKGBUILD
blob: 65d1d67036ee57a13e811ea8161db8d56e0b8980 (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
# Contributor (AUR): Andrey Mivrenik <gim at fastmail dot fm>
# Contributor (AUR): Ryan Coyner <rcoyner@gmail.com>
# Contributor (AUR): James Pearson <james.m.pearson+arch@gmail.com>
# Maintainer : Aurélien Desbrières <aurelien@hackers.camp>

# parabola changes and rationale:
#  - added replaces for previous pkgname 'django-tagging' (2018-02-01)

pkgname=python2-django-tagging
_pkgname=django-tagging
pkgver=0.4.1
pkgrel=1
pkgdesc="A generic tagging application for Django projects"
arch=('any')
url='https://pypi.python.org/pypi/django-tagging'
license=('MIT')
depends=('python2-django')
makedepends=('python2-setuptools')
replaces=('django-tagging')
source=("https://pypi.python.org/packages/source/d/django-tagging/django-tagging-${pkgver}.tar.gz")
sha256sums=('35802daf35f90aa022d59f7d7d485c719c29c4efbde1bf966d44017e1e64602b')

build() { 
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python2 setup.py build
}

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

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