summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3bd11ade16e90350ee667927576af7226617568 (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
# Contributors: Caltlgin Stsodaat, vanyasem, Florian Wittmann

_pkgname='pathvalidate'
pkgname=python-$_pkgname
pkgver=2.3.2
pkgrel=1
pkgdesc='Sanitize/validate strings in filenames/file-paths/etc'
arch=('any')
url='https://github.com/thombashi/pathvalidate'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://github.com/thombashi/pathvalidate/archive/v$pkgver.tar.gz")
sha256sums=('ff9d3f5ae2ab29124545324da51bcc4788a6fe52b9ddc3b74b1707920e2b099a')

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

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