summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 697dca575e557d8f34432156913f80d07d92557d (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: Steven De Bondt <egnappah at gmail dot com>

pkgname=python3-django-tagging
_pkgname=django-tagging
pkgver=0.5.0
pkgrel=2
pkgdesc="A generic tagging application for Django projects in python3"
arch=('any')
url='https://pypi.python.org/pypi/django-tagging'
license=('MIT')
depends=('python-django')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/d2/9b/a137d764eb990ac353399d244aa96c7cf02aabe3c58be5a74418406bb838/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('28d68fa4831705e51ad7d1e845ed6dd9e354f9b6f8a5f63b655a430646ef4e8d')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
  #Change for new django version
  sed -i 's/smart_text/smart_str/g' build/lib/tagging/models.py
}

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