summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ec5f36ddd51b90a96da8931a6fe9852361ec268 (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
# Maintainer: Łukasz Pożarlik <lpozarlik@gmail.com>

pkgname=('python-django-bootstrap4' 'python2-django-bootstrap4')
pkgdesc="Bootstrap 4 integration with Django"
pkgver=0.0.8
pkgrel=1
url="https://github.com/zostera/django-bootstrap4"
license=('BSD-3-Clause')
arch=('any')
makedepends=('python' 
  'python-setuptools' 
  'python2' 
  'python2-setuptools')
source=("https://github.com/zostera/django-bootstrap4/archive/v${pkgver}.tar.gz")
sha256sums=('1e3717cbff1a18f18887bd827780b17a8e6e10bb8343059cfba10ab26ff3b16e')

build() {
  cp -r ${srcdir}/django-bootstrap4-${pkgver} ${srcdir}/django-bootstrap4-${pkgver}-py2

  cd ${srcdir}/django-bootstrap4-${pkgver}
  python setup.py build

  cd ${srcdir}/django-bootstrap4-${pkgver}-py2
  python2 setup.py build
}

package_python-django-bootstrap4() {
  depends=('python-django')
  cd ${srcdir}/django-bootstrap4-${pkgver}
  python setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

package_python2-django-bootstrap4() {
  depends=('python2-django')
  cd ${srcdir}/django-bootstrap4-${pkgver}-py2
  python2 setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}



# vim:set ts=2 sw=2 et: