mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
31 lines
859 B
Bash
31 lines
859 B
Bash
# arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/python-pyelftools
|
|
|
|
pkgname=python3-pyelftools
|
|
_pypiname=pyelftools
|
|
pkgver=0.24
|
|
pkgrel=2
|
|
pkgdesc="Python library for analyzing ELF files and DWARF debugging information"
|
|
arch=('any')
|
|
url="https://github.com/eliben/pyelftools"
|
|
license=('custom')
|
|
depends=('python3')
|
|
source=("${_pypiname}-${pkgver}.zip::https://github.com/eliben/pyelftools/archive/v${pkgver}.zip")
|
|
sha1sums=('f262d972a26846b35ac23f3e884809ab90b7624a')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pypiname}-${pkgver}
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${_pypiname}-${pkgver}
|
|
python3 test/run_all_unittests.py
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_pypiname}-${pkgver}
|
|
python3 setup.py install --root=${pkgdir}
|
|
install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|