mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/py-django-appconf: modernize APKBUILD
This commit is contained in:
parent
f6eca43648
commit
16e7e0d6f0
@ -1,34 +1,27 @@
|
||||
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
|
||||
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
|
||||
pkgname=py-django-appconf
|
||||
_pkgname=django-appconf
|
||||
pkgver=1.0.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Packaged application configuation helper for Django"
|
||||
url=http://django-appconf.readthedocs.org/
|
||||
arch=noarch
|
||||
license=BSD
|
||||
url="http://django-appconf.readthedocs.org/"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends="py-django py-six"
|
||||
makedepends=py-setuptools
|
||||
source="https://files.pythonhosted.org/packages/source/d/django-appconf/django-appconf-$pkgver.tar.gz"
|
||||
makedepends="py-setuptools"
|
||||
options="!check" # No test suite available
|
||||
source="https://files.pythonhosted.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
|
||||
_builddir=$srcdir/django-appconf-$pkgver
|
||||
prepare() {
|
||||
local i
|
||||
cd "$_builddir"
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
python2 setup.py install --root "$pkgdir"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user