mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
35 lines
1,019 B
Text
35 lines
1,019 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-libarchive-c
|
|
pkgver=4.0
|
|
pkgrel=1
|
|
pkgdesc="Python interface to libarchive"
|
|
url="https://github.com/Changaco/python-libarchive-c"
|
|
arch="noarch"
|
|
license="CC0-1.0"
|
|
depends="libarchive python3" # uses ffi
|
|
makedepends="python3-dev libarchive-dev py3-setuptools"
|
|
checkdepends="py3-pytest py3-mock"
|
|
source="python-libarchive-c-$pkgver.tar.gz::https://github.com/Changaco/python-libarchive-c/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-libarchive-c-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
soname=$(scanelf --quiet --soname /usr/lib/libarchive.so | awk '{print $1}')
|
|
sed -i -e "s/find_library('archive')/find_library('$soname')/" libarchive/ffi.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
1544713802789859ffa9a0d8f4e490f720bbd4d589aae8899d0d1fb6780f2cde0db96f3023c1c32eacea07ea325ac180797aebdb0e8e37093af53807f2e5c812 python-libarchive-c-4.0.tar.gz
|
|
"
|