summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d0ada389689e9076d8f56ab4712061406a9a6cb (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
# Maintainer: Joffrey <j-off@live.fr>

pkgbase='python-django-webpack-loader'
pkgname=('python-django-webpack-loader' 'python2-django-webpack-loader')
pkgver='0.6.0'
pkgrel=1
pkgdesc='Transparently use webpack with django'
arch=('any')
url='https://github.com/owais/django-webpack-loader'
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://github.com/owais/django-webpack-loader/archive/$pkgver.tar.gz")
sha256sums=('5859d1794a08a02d2453b29a4a5c847bb2e16e415c4b9b13979f7cd90e209005')

package_python-django-webpack-loader() {
    depends=(
        'python-django'
        'python-lxml'
        'python-six'
        'python-requests'
    )
    cd "$srcdir/django-webpack-loader-$pkgver"
    install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    python './setup.py' install --root="$pkgdir" --optimize=1
}

package_python2-django-webpack-loader() {
    depends=(
        'python2-django'
        'python2-lxml'
        'python2-six'
        'python2-requests'
    )
    cd "$srcdir/django-webpack-loader-$pkgver"
    install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    python2 './setup.py' install --root="$pkgdir" --optimize=1
}