summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD52
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3665d86842e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-django-reversion
+ pkgver = 1.8.2
+ pkgrel = 2
+ url = http://github.com/etianen/django-reversion
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = python2
+ makedepends = python
+ source = https://pypi.python.org/packages/source/d/django-reversion/django-reversion-1.8.2.tar.gz
+ md5sums = b00c492284c776a69ff6cc43247be682
+
+pkgname = python-django-reversion
+ pkgdesc = An python3 extension to the Django web framework that provides comprehensive version control facilities
+ depends = python
+
+pkgname = python2-django-reversion
+ pkgdesc = An python2 extension to the Django web framework that provides comprehensive version control facilities
+ depends = python2
+
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