aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-djblets/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py-django-djblets/APKBUILD')
-rw-r--r--main/py-django-djblets/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/py-django-djblets/APKBUILD b/main/py-django-djblets/APKBUILD
new file mode 100644
index 0000000000..b314f2bd64
--- /dev/null
+++ b/main/py-django-djblets/APKBUILD
@@ -0,0 +1,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"