1 # Maintainer : Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: Hugo Doria <hugo@archlinux.org>
7 pkgdesc="A Pacman package analyzer"
9 url='https://gitlab.archlinux.org/pacman/namcap'
11 depends=('python' 'pyalpm' 'licenses' 'binutils' 'elfutils' 'python-pyelftools')
12 checkdepends=('systemd')
13 makedepends=('python-setuptools')
14 source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz
15 namcap-ignore-so-no-pie.patch
16 missing-desktop-file-utils.patch
18 sha512sums=('bdcca39cff873cc1ac7138bc2f218e808019424c1ff414b98f183400c08879a94fe7318049b1912dd094c1fced14b095a467465b04cd78cb9d1725cdbe2be821'
19 'df8a8c389aa9d619650d6e472409e4480095e09d5ea60b232a865e1a654dd9440e2228f1f098302b529d6db89f9cd0d8d066881da2bc3ca9ec07b17368efd2cf'
20 '74efb1939053f41129cd811cf84abef8ff84ca4673cb62c3115b9d56830a57a48fed021b9807a74299c4c4cf3ec1880733f91dd5d06f4b9ac294fc78a9b5498e'
21 '4fe74e35298313d7648fc0e9f74c2ddd4b2edd6a3a0a8c8c7ba9f6af9d2b32f555558e122c3f5bf5a98a65b8430f50593dfac689af7fbf34425032c6d925b0a4')
24 cd ${pkgname}-${pkgver}
25 patch -Np1 -i "${srcdir}/missing-desktop-file-utils.patch"
26 patch -Np1 -i "${srcdir}/namcap-ignore-so-no-pie.patch"
27 patch -Np1 -i "${srcdir}/py3.10.patch"
31 cd ${pkgname}-${pkgver}
36 cd ${pkgname}-${pkgver}
37 env PARSE_PKGBUILD_PATH="${srcdir}/${pkgname}-${pkgver}" \
38 PATH="${srcdir}/${pkgname}-${pkgver}:$PATH" \
43 cd ${pkgname}-${pkgver}
44 python setup.py install --root="${pkgdir}"