aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-django/APKBUILD
blob: 866eb62a3bcc82f1b7d243e4fdf9b706a1b7b9b6 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Contributor: Andrew Wilcox <AWilcox@Wilcox-Tech.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-django
_pkgname=Django
pkgver=1.11.29
pkgrel=0
pkgdesc="A high-level Python3 Web framework"
url="https://djangoproject.com/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-tz"
makedepends="py3-setuptools"
options="!check" # some depends missing, others in community/testing
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-django" # Backwards compatibility
provides="py-django=$pkgver-r$pkgrel" # Backwards compatibility

# secfixes:
#   1.11.29-r0:
#     - CVE-2020-9402
#   1.11.28-r0:
#     - CVE-2020-7471
#   1.11.27-r0:
#     - CVE-2019-19844
#   1.11.23-r0:
#     - CVE-2019-14232
#     - CVE-2019-14233
#     - CVE-2019-14234
#     - CVE-2019-14235
#   1.11.22-r0:
#     - CVE-2019-12781
#   1.8.16-r0:
#     - CVE-2016-9013
#     - CVE-2016-9014
#   1.10.7-r0:
#     - CVE-2017-7233
#     - CVE-2017-7234
#   1.11.5-r0:
#     - CVE-2017-12794
#   1.11.10-r0:
#     - CVE-2018-6188
#   1.11.11-r0:
#     - CVE-2018-7536
#     - CVE-2018-7537
#   1.11.15-r0:
#     - CVE-2018-14574
#   1.11.18-r0:
#     - CVE-2019-3498
#   1.11.19-r0:
#     - CVE-2019-6975
#   1.11.21-r0:
#     - CVE-2019-12308

build() {
	python3 setup.py build
}

check() {
	cd tests
	python3 runtests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin
	ln -s django-admin "$pkgdir"/usr/bin/django-admin-3
}

sha512sums="dc8d1c5c09f998bf7015967961247e56a9c1dd55701534c6bce6dac2270a5531e1162d9bcbf5ec5f4d411d2d0dc820c82fd9b69628c5ff944bb9f1a22290a562  Django-1.11.29.tar.gz"