upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-libarchive-c / repos / community-any / PKGBUILD
blobcc6d7f658472132c7ca662b564a8a67c192745f8
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 pkgname=python-libarchive-c
4 pkgver=4.0
5 pkgrel=3
6 pkgdesc='Python interface to libarchive'
7 url='https://github.com/Changaco/python-libarchive-c'
8 arch=('any')
9 license=('CC0')
10 depends=('python' 'libarchive')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=(https://github.com/Changaco/python-libarchive-c/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
14         drop-python-mock-dependency.patch::https://github.com/Changaco/python-libarchive-c/commit/13b904e2b046db25a42cd63557d259b3d3998323.patch)
15 sha512sums=('1544713802789859ffa9a0d8f4e490f720bbd4d589aae8899d0d1fb6780f2cde0db96f3023c1c32eacea07ea325ac180797aebdb0e8e37093af53807f2e5c812'
16             '03982be41ca25010a6964c11480e20d4ca38f04bd95945ec6aca0e70351d89a40b551df79a014849c36870cffa112656798cfec46cb60b7b21ea33cabf63bc60')
17 b2sums=('87f8cfb0adf080b11df85d065fbcc38bf5682592882b3a8a8077e5cfb590cc10a05b98c98a2be41570aa59d06899b2e47815183e563007b1077717cdaa79a21c'
18         'f47727a0a9325f64a35533977a3b4551fef5759e3b34c3a4319dfbd44d76cf620a0dd75fe67550d6e97c6c50c791964cf9c781ccb431023ddb26fc44f932b816')
20 prepare() {
21   sed '/os.umask(2)/d' -i ${pkgbase}-${pkgver}/setup.py
22   cd ${pkgbase}-${pkgver}
23   patch -Np1 -i ${srcdir}/drop-python-mock-dependency.patch
26 check() {
27   cd ${pkgbase}-${pkgver}
28   LC_CTYPE=en_US.UTF-8 py.test
31 build() {
32   cd ${pkgbase}-${pkgver}
33   python setup.py build
36 package() {
37   cd ${pkgbase}-${pkgver}
38   python setup.py install -O1 --root="${pkgdir}" --skip-build
39   install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
40   install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
43 # vim: ts=2 sw=2 et: