aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-djblets/APKBUILD
blob: b314f2bd6472fbebc62dad8de5a9123147682903 (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
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=django-djblets
pkgname=py-${_pkgname}
pkgver=0.6.31
pkgrel=0
pkgdesc="set of utilty classes and functions for web applications written using Django"
url="https://github.com/djblets/djblets/"
arch="noarch"
license="BSD"
makedepends="python-dev py-setuptools"
depends="python py-django-pipeline"
source="$pkgname-$pkgver.tar.gz::https://github.com/djblets/djblets/archive/release-${pkgver}.tar.gz"

_builddir="${srcdir}/djblets-release-${pkgver}"

prepare() {
	local pf
	cd "${_builddir}"
	for pf in $source; do
		case $pf in
		*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
		esac
	done
}

build() {
	cd "${_builddir}"
	python setup.py build || return 1
}

package() {
	export PIPELINE_JS_COMPRESSOR='pipeline.compressors.jsmin.JSMinCompressor'
	cd "${_builddir}"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="e9a36f643141666188f8b3cf0a45faf1  py-django-djblets-0.6.31.tar.gz"
sha256sums="0899bd0fb59c5faf9dc3bb4eb27beec5e6b55f5afead205764b8a09ab5b62a21  py-django-djblets-0.6.31.tar.gz"
sha512sums="8874070fca77fce8a823ce0155ca0314758c7a6d7dd423a30aea5b23990bcec3675a9e22751f4bf6b6db75c6f0688cfaab85e59a344e13135c0f55a6edc35b6d  py-django-djblets-0.6.31.tar.gz"