diff options
author | roliboy | 2021-06-10 14:22:57 +0300 |
---|---|---|
committer | roliboy | 2021-06-10 14:22:57 +0300 |
commit | 3a55058281ec51b4bb0b226ae28115070aba5a27 (patch) | |
tree | 690b7fd362c331cc57051a5b828f7ca123f56c0e | |
download | aur-3a55058281ec51b4bb0b226ae28115070aba5a27.tar.gz |
add version 1.2.0
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0577e720957c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-pywhat + pkgdesc = Identify emails, IP addresses and more + pkgver = 1.2.0 + pkgrel = 1 + url = https://github.com/bee-san/pyWhat + arch = any + license = GPL-3.0 + makedepends = python-setuptools + makedepends = python-dephell + depends = python + depends = python-click + depends = python-langdetect + depends = python-name-that-hash + depends = python-rich + source = python-pywhat.tar.gz::https://github.com/bee-san/pyWhat/archive/refs/tags/1.2.0.tar.gz + sha256sums = 64909fd3af97d914fb41732bc635487c483a4d8bcea2a1dc49f35b1f5b9b776c + +pkgname = python-pywhat diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca7716ad0440 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Nagy Roland <roliboy@protonmail.com> + +pkgname=python-pywhat +_pkgname=pyWhat +pkgver=1.2.0 +pkgrel=1 +pkgdesc="Identify emails, IP addresses and more" +arch=('any') +depends=( + 'python' + 'python-click' + 'python-langdetect' + '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.tar.gz::https://github.com/bee-san/pyWhat/archive/refs/tags/$pkgver.tar.gz") +sha256sums=( + "64909fd3af97d914fb41732bc635487c483a4d8bcea2a1dc49f35b1f5b9b776c" +) + +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" +} + |