aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-django-compressor/APKBUILD
blob: 8721501ea832ef1ac559d7336e9139f421fec96d (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
28
29
30
31
32
33
34
35
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-compressor
pkgver=2.2
pkgrel=0
pkgdesc="JavaScript and CSS compressor for Django"
url=https://github.com/django-compressor/django-compressor
arch=noarch
license="MIT and Apache-2.0 and BSD"
depends="py-django py-django-appconf"
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django_compressor/django_compressor-$pkgver.tar.gz"

_builddir=$srcdir/django_compressor-$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
}

build() {
	cd "$_builddir"
	python2 setup.py build
}

package() {
	cd "$_builddir"
	python2 setup.py install --root "$pkgdir"
}

sha512sums="f29aabb25c6e0fc4d7b8e7963ad4289ee06cab4400da7c9c544ccc85c53d584fcd135f41afd0ab93ab85ac6e15f751ccccf53b6b914f03f564b3a2679598cfe7  django_compressor-2.2.tar.gz"