2018-06-15 16:21:25 +02:00
|
|
|
# Maintainer: Joffrey <j-off@live.fr>
|
|
|
|
|
|
|
|
pkgbase='python-django-webpack-loader'
|
|
|
|
pkgname=('python-django-webpack-loader' 'python2-django-webpack-loader')
|
|
|
|
pkgver='0.6.0'
|
2019-11-14 23:36:17 +01:00
|
|
|
pkgrel=2
|
2018-06-15 16:21:25 +02:00
|
|
|
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"
|
2018-06-15 22:34:05 +02:00
|
|
|
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2018-06-15 16:21:25 +02:00
|
|
|
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"
|
2018-06-15 22:34:05 +02:00
|
|
|
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2018-06-15 16:21:25 +02:00
|
|
|
python2 './setup.py' install --root="$pkgdir" --optimize=1
|
|
|
|
}
|