diff options
author | Junker | 2023-01-16 05:09:15 +0700 |
---|---|---|
committer | Junker | 2023-01-16 05:09:15 +0700 |
commit | d937c6df4280d7cd4fd8bb56414f5416370af0bd (patch) | |
tree | 529aba533e3cc37e473bb080579e67fb9a0c5773 | |
download | aur-python-urlextract.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..75a5554b4c95 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-urlextract + pkgdesc = Collects and extracts URLs from given text. + pkgver = 1.8.0 + pkgrel = 1 + url = https://github.com/lipoja/URLExtract + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-idna + depends = python-uritools + depends = python-platformdirs + depends = python-dnspython + source = https://files.pythonhosted.org/packages/source/u/urlextract/urlextract-1.8.0.tar.gz + sha256sums = 3573f6b812814efe06ca46e91e82d984edaa3cd07daaaaa296a467ad9881a037 + +pkgname = python-urlextract diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..988cd3e542ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +pkgname=python-urlextract +_name=urlextract +pkgver=1.8.0 +pkgrel=1 +pkgdesc='Collects and extracts URLs from given text.' +arch=('any') +url=https://github.com/lipoja/URLExtract +license=('MIT') +depends=('python-idna' 'python-uritools' 'python-platformdirs' 'python-dnspython') +makedepends=('python-build' 'python-installer' 'python-wheel' ) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('3573f6b812814efe06ca46e91e82d984edaa3cd07daaaaa296a467ad9881a037') + +build() { + cd $_name-$pkgver + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd $_name-$pkgver +} + +package() { + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s "$site_packages"/$pkgname-$pkgver.dist-info/licenses/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |