summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c790f415645b401686d4f5b3f55ed147147ed542 (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
# Maintainer: Nagy Roland <roliboy@protonmail.com>

pkgname=python-pywhat
_pkgname=pyWhat
pkgver=3.1.0
pkgrel=2
pkgdesc="Identify emails, IP addresses and more"
arch=('any')
depends=(
    'python'
    'python-click'
    'python-name-that-hash' #aur
    'python-rich'
)
makedepends=("python-setuptools" "python-dephell")
url="https://github.com/bee-san/pyWhat"
license=('GPL-3.0')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bee-san/pyWhat/archive/refs/tags/$pkgver.tar.gz")
sha256sums=(
    "725e07c2ae4520021805d60628b636faa1c75c9da782f0b3e5ee514edc7926d3"
)

prepare() {
    cd "$_pkgname-$pkgver"
    dephell deps convert --from pyproject.toml --to setup.py
}

build() {
    cd "$_pkgname-$pkgver"
    python setup.py build
}

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