From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- python-extruct | 1 - python-extruct/.SRCINFO | 22 ++++++++++++++++++++++ python-extruct/PKGBUILD | 24 ++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) delete mode 160000 python-extruct create mode 100644 python-extruct/.SRCINFO create mode 100644 python-extruct/PKGBUILD (limited to 'python-extruct') diff --git a/python-extruct b/python-extruct deleted file mode 160000 index b060787..0000000 --- a/python-extruct +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b0607877ea6354b47e359d8b602df1791be0979d diff --git a/python-extruct/.SRCINFO b/python-extruct/.SRCINFO new file mode 100644 index 0000000..2a808e7 --- /dev/null +++ b/python-extruct/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-extruct + pkgdesc = Extract embedded metadata from HTML markup + pkgver = 0.13.0 + pkgrel = 1 + url = https://github.com/scrapinghub/extruct + arch = any + license = custom + makedepends = python-setuptools + depends = python-lxml + depends = python-requests + depends = python-rdflib + depends = python-rdflib-jsonld + depends = python-pyrdfa3 + depends = python-mf2py + depends = python-six + depends = python-w3lib + depends = python-html-text + depends = python-jstyleson + source = python-extruct-0.13.0.tar.gz::https://github.com/scrapinghub/extruct/archive/v0.13.0.tar.gz + sha256sums = 2bf4d8aaf9cfd2ea27bac256e5cabd601a480a47f49b9531ac8bfe3b42a9c74f + +pkgname = python-extruct diff --git a/python-extruct/PKGBUILD b/python-extruct/PKGBUILD new file mode 100644 index 0000000..3aaf859 --- /dev/null +++ b/python-extruct/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Yigit Sever +pkgname=python-extruct +_pkgname=extruct +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Extract embedded metadata from HTML markup" +arch=('any') +url="https://github.com/scrapinghub/extruct" +license=('custom') +depends=('python-lxml' 'python-requests' 'python-rdflib' 'python-rdflib-jsonld' 'python-pyrdfa3' 'python-mf2py' 'python-six' 'python-w3lib' 'python-html-text' 'python-jstyleson') +makedepends=('python-setuptools') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('2bf4d8aaf9cfd2ea27bac256e5cabd601a480a47f49b9531ac8bfe3b42a9c74f') + +build() { + cd "${_pkgname}-${pkgver}" + python setup.py build +} + +package() { + cd "${_pkgname}-${pkgver}" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" +} -- cgit v1.2.3-70-g09d2