# Tanım: Python3 django web çerçevesi
# URL: https://www.djangoproject.com/
# Paketçi: milisarge
# Gerekler: python3-setuptools python3
# Grup: sistem

isim=python3-django
surum=2.1
devir=1

kaynak=(https://www.djangoproject.com/m/releases/$surum/Django-$surum.tar.gz)

derle() {
	cd Django-$surum
	python3 setup.py build
	python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
	ln -s django-admin.py "$PKG"/usr/bin/django-admin3.py
	ln -s django-admin "$PKG"/usr/bin/django-admin3
	install -Dm644 extras/django_bash_completion "$PKG"/usr/share/bash-completion/completions/django-admin.py
	ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/django-admin
	ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/manage.py
}
