blob: 24c380ec346af4df65f63e6c4e4ea04c0fa0d73e (
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
|
# Maintainer: Aloxaf <aloxafx@gmail.com>
pkgname=semgrep-bin
_name=semgrep
pkgver=0.30.0
pkgrel=2
pkgdesc="Fast and syntax-aware semantic code pattern search for many languages: like grep but for code"
arch=(x86_64)
url=https://github.com/returntocorp/semgrep
license=(LGPL2.1)
makedepends=('python-setuptools' 'python-wheel')
depends=('python' 'python-attrs' 'python-colorama' 'python-junit-xml' 'python-requests' 'python-ruamel-yaml' 'python-tqdm' 'python-packaging' 'python-jsonschema')
provides=('semgrep')
options=('!strip')
source=(
"https://github.com/returntocorp/semgrep/releases/download/v${pkgver}/semgrep-v${pkgver}-ubuntu-16.04.tgz"
"https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha256sums=(
'2be7af5e99daffafbd6d417931d4226738505545f005fbb2b82603f0e6c271a0'
'e6921a41b9a08c1c7c66622c5893dd3865ac1fdc05ed4e60b0b5c58d9aa6b8e9'
)
# https://github.com/returntocorp/semgrep/releases/download/v${pkgver}/semgrep-v${pkgver}-ubuntu-16.04.tgz.sha256
build() {
cd "$srcdir/${_name}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}"
find semgrep-files -type f -exec install -D '{}' "${pkgdir}/usr/lib/{}" \;
cd "${_name}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
# solve conflict with python-hypothesis
rm -rf "${pkgdir}/usr/lib/python3.8/site-packages/tests"
}
|