Something went wrong. Try again.
PKGBUILDs used for my personal repository, including AUR packages from myself and others
Something went wrong. Try again.
874 B · 24 lines
at master
12345678910111213141516171819202122232425_pkgname='pathvalidate'pkgname=python-$_pkgnamepkgver=3.3.1pkgrel=1pkgdesc='Sanitize/validate strings in filenames/file-paths/etc'arch=('any')url='https://github.com/thombashi/pathvalidate'license=('MIT')depends=('python' 'python-click')makedepends=('python-setuptools-scm' 'python-wheel' 'python-installer' 'python-build')source=("$pkgname-$pkgver.tar.gz::https://github.com/thombashi/pathvalidate/releases/download/v${pkgver}/pathvalidate-${pkgver}.tar.gz")sha256sums=('b18c07212bfead624345bb8e1d6141cdcf15a39736994ea0b94035ad2b1ba177')build() { cd "${_pkgname}-${pkgver}" python -m build --wheel --no-isolation}package() { cd "${_pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}" install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"}