APKBUILD 972 Bytes
Newer Older
1
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
2
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
3
pkgname=py-django-contact-form
4
pkgver=1.4.2
5 6 7 8 9 10 11
pkgrel=0
pkgdesc="Generic contact-form application for Django"
url=https://bitbucket.org/ubernostrum/django-contact-form/
arch=noarch
license=BSD
depends=py-django
makedepends=py-setuptools
12
source="https://files.pythonhosted.org/packages/source/d/django-contact-form/django-contact-form-$pkgver.tar.gz"
13 14 15 16 17 18 19 20 21 22 23 24 25 26

_builddir=$srcdir/django-contact-form-$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"
27
	python2 setup.py build
28 29 30 31
}

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

35
sha512sums="7d7769161923dd5c9d05ad3c30b68195dae81f4565278cb4a84955704558084f18763991adb106e726dc590de4e3fcc4ae13e01fef6c89350b244f6878e1b36d  django-contact-form-1.4.2.tar.gz"