From afe054ba8faf35db984aae0e3a5664a3c9ffebad Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Thu, 17 Mar 2016 04:35:33 +0000 Subject: [PATCH] add namcap, rebuild kldap for libsasl --- kldap/PKGBUILD | 4 ++-- namcap/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ pyalpm/PKGBUILD | 18 +++++++++++------- python3-pyelftools/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+), 9 deletions(-) create mode 100644 namcap/PKGBUILD create mode 100644 python3-pyelftools/PKGBUILD diff --git a/kldap/PKGBUILD b/kldap/PKGBUILD index 7004f14da..45a9cfdeb 100644 --- a/kldap/PKGBUILD +++ b/kldap/PKGBUILD @@ -3,12 +3,12 @@ source ../kdeapps.conf pkgname=kldap pkgver=${_kdever} -pkgrel=1 +pkgrel=2 pkgdesc="LDAP access API for KDE" arch=('x86_64') url="https://projects.kde.org/$pkgname" license=(LGPL) -depends=(kcompletion ki18n) +depends=(kcompletion ki18n libsasl libldap) makedepends=(extra-cmake-modules python3) options=('debug') source=("$_mirror/${pkgname}-$_kdever.tar.xz") diff --git a/namcap/PKGBUILD b/namcap/PKGBUILD new file mode 100644 index 000000000..a7877f1d2 --- /dev/null +++ b/namcap/PKGBUILD @@ -0,0 +1,36 @@ +# arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/namcap + +pkgname=namcap +pkgver=3.2.6 +pkgrel=1 +pkgdesc="A Pacman package analyzer" +arch=('any') +url="http://projects.archlinux.org/namcap.git/" +license=('GPL') +depends=('python3' 'pyalpm>=0.5' 'licenses' + 'binutils' 'elfutils' 'python3-pyelftools') +makedepends=('python3-setuptools') +source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz) +sha1sums=('a7d3f21b5df211c1e2cbfae80373e657d49d1b36') + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + python3 setup.py build +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + # env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \ + # PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \ + # python3 setup.py test +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + python3 setup.py install --root=${pkgdir} +} + diff --git a/pyalpm/PKGBUILD b/pyalpm/PKGBUILD index db315a87b..1a52f5076 100644 --- a/pyalpm/PKGBUILD +++ b/pyalpm/PKGBUILD @@ -4,21 +4,25 @@ pkgname=pyalpm pkgver=0.7 -pkgrel=1 +pkgrel=2 pkgdesc="Libalpm bindings for Python 3" arch=('x86_64') url="http://projects.archlinux.org/users/remy/pyalpm.git/" license=('GPL') -depends=('python3>=3.4' 'pacman>=4.2') -source=("https://sources.archlinux.org/other/pyalpm/$pkgname-$pkgver.tar.gz") -sha1sums=('62fafb93d30c27b5a5a09df3e802d6e50fed9802') +depends=('python3>=3.5' 'pacman>=4.2') +source=("https://sources.archlinux.org/other/pyalpm/$pkgname-$pkgver.tar.gz" + "py35.patch::https://projects.archlinux.org/users/remy/pyalpm.git/patch/?id=dc61782e9bd085a8a09bc7954231eb15e6e085e5") +sha1sums=('62fafb93d30c27b5a5a09df3e802d6e50fed9802' + 'f8ec083281e4b4815381fb5388f83703ff692102') + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ../py35.patch +} build() { cd ${srcdir}/${pkgname}-${pkgver} - # workaround Python packaging issue (FS#34658) - export CFLAGS="$CFLAGS -Wno-format" - python3 setup.py build } diff --git a/python3-pyelftools/PKGBUILD b/python3-pyelftools/PKGBUILD new file mode 100644 index 000000000..e5df09db4 --- /dev/null +++ b/python3-pyelftools/PKGBUILD @@ -0,0 +1,30 @@ +# arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/python-pyelftools + +pkgname=python3-pyelftools +_pypiname=pyelftools +pkgver=0.23 +pkgrel=2 +pkgdesc="Python library for analyzing ELF files and DWARF debugging information" +arch=('any') +url="https://github.com/eliben/pyelftools" +license=('custom') +depends=('python') +source=("${_pypiname}-${pkgver}.zip::https://github.com/eliben/pyelftools/archive/v${pkgver}.zip") +sha1sums=('553de375ae13e5cd96efd2d9fe439aacbfbe1806') + +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 +} +