summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5687a4aa9e53794f8182786fe8d61edeb448e7ea (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
# Maintainer: Score_Under <seejay.11@gmail.com>
# Submitter: Rafael Fontenelle <rafaeff@gnome.org>
# Contributor: Martin Minka <martin.minka@gmail.com>

_name=jsmin
pkgname='python2-jsmin'
pkgver=3.0.1
pkgrel=1
pkgdesc="JavaScript minifier"
arch=(any)
url="https://pypi.org/pypi/$_name"
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('c0959a121ef94542e807a674142606f7e90214a2b3d1eb17300244bbb5cc2bfc')

build() {
  cd "$srcdir/$_name-$pkgver"
  python2 setup.py build
}

package() {
  cd "$srcdir/$_name-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}