summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc63768921f1d99c08e7214526e2b9d6c4d332a5 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: mawcomw <mawcomw@gmail.com>

pkgbase=python-dj-database-url
pkgname=('python-dj-database-url' 'python2-dj-database-url')
pkgver=0.4.2
pkgrel=0
arch=('i686' 'x86_64')
url="https://github.com/kennethreitz/dj-database-url"
license=('BSD')
makedepends=('python2' 'python')
source=("https://github.com/kennethreitz/dj-database-url/archive/v$pkgver.tar.gz")
md5sums=('c7c63c1a57ee464d15ea26d1a21e9536')

prepare() {
   cp -r dj-database-url-${pkgver} python2-dj-database-url-${pkgver}
}

build() {
   cd $srcdir/dj-database-url-${pkgver}
   python setup.py build
   
   cd $srcdir/python2-dj-database-url-${pkgver}
   python2 setup.py build
}

#check(){
#   cd $srcdir/dj-database-url-${pkgver}
#   python setup.py test
#
#   cd $srcdir/python2-dj-database-url-${pkgver}
#   python2 setup.py test
#}

package_python-dj-database-url() {
   pkgdesc="A simple Python3 utility that allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application."
   depends=('python')

   cd dj-database-url-${pkgver}
   python setup.py install --root="${pkgdir}" --optimize=1
   
   #install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
}

package_python2-dj-database-url() {
   pkgdesc="A simple Python2 utility that allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application."
   depends=('python2')
   
   cd python2-dj-database-url-${pkgver}
   python2 setup.py install --root="${pkgdir}" --optimize=1
   
   #install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
}