summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..742c6abc623
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: mawcomw <mawcomw@gmail.com>
+
+pkgbase=python-django-reversion
+pkgname=('python-django-reversion' 'python2-django-reversion')
+pkgver=1.8.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://github.com/etianen/django-reversion"
+license=('BSD')
+makedepends=('python2' 'python')
+source=("https://pypi.python.org/packages/source/d/django-reversion/django-reversion-$pkgver.tar.gz")
+md5sums=('b00c492284c776a69ff6cc43247be682')
+
+prepare() {
+ cp -r django-reversion-${pkgver} python2-django-reversion-${pkgver}
+}
+
+build() {
+ cd $srcdir/django-reversion-${pkgver}
+ python setup.py build
+
+ cd $srcdir/python2-django-reversion-${pkgver}
+ python2 setup.py build
+}
+
+#check(){
+# cd $srcdir/django-reversion-${pkgver}
+# python setup.py test
+#
+# cd $srcdir/python2-django-reversion-${pkgver}
+# python2 setup.py test
+#}
+
+package_python-django-reversion() {
+ depends=('python' )
+ pkgdesc="An python3 extension to the Django web framework that provides comprehensive version control facilities"
+
+ cd $srcdir/django-reversion-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-django-reversion() {
+ depends=('python2' )
+ pkgdesc="An python2 extension to the Django web framework that provides comprehensive version control facilities"
+
+ cd python2-django-reversion-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+} \ No newline at end of file