django.paketlendi
This commit is contained in:
parent
c01a5ea0a1
commit
084298c9d9
|
@ -0,0 +1,21 @@
|
||||||
|
# Description: python2 django web framework
|
||||||
|
# URL: https://www.djangoproject.com/
|
||||||
|
# Packager: milisarge
|
||||||
|
# Depends on: python-setuptools python
|
||||||
|
|
||||||
|
name=python-django
|
||||||
|
version=1.11.2
|
||||||
|
release=1
|
||||||
|
|
||||||
|
source=(https://pypi.python.org/packages/c0/31/4bffd9183066eea645430114419c30b030b599320da8246701b81c6a78d2/Django-1.11.2.tar.gz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd Django-$version
|
||||||
|
python2 setup.py build
|
||||||
|
python2 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
||||||
|
ln -s django-admin.py "$PKG"/usr/bin/django-admin2.py
|
||||||
|
ln -s django-admin "$PKG"/usr/bin/django-admin2
|
||||||
|
install -Dm644 extras/django_bash_completion "$PKG"/usr/share/bash-completion/completions/django-admin2.py
|
||||||
|
ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/django-admin2
|
||||||
|
ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/manage2.py
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Description: python3 django web framework
|
||||||
|
# URL: https://www.djangoproject.com/
|
||||||
|
# Packager: milisarge
|
||||||
|
# Depends on: python3-setuptools python3
|
||||||
|
|
||||||
|
name=python3-django
|
||||||
|
version=1.11.2
|
||||||
|
release=1
|
||||||
|
|
||||||
|
source=(https://pypi.python.org/packages/c0/31/4bffd9183066eea645430114419c30b030b599320da8246701b81c6a78d2/Django-1.11.2.tar.gz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd Django-$version
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue