[arch-commits] Commit in namcap/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Sep 19 10:19:15 UTC 2015
Date: Saturday, September 19, 2015 @ 12:19:15
Author: fyan
Revision: 246592
archrelease: copy trunk to staging-any
Added:
namcap/repos/staging-any/
namcap/repos/staging-any/PKGBUILD
(from rev 246591, namcap/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: namcap/repos/staging-any/PKGBUILD (from rev 246591, namcap/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 10:19:15 UTC (rev 246592)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer : Rémy Oudompheng <remy at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=namcap
+pkgver=3.2.5
+pkgrel=3
+pkgdesc="A Pacman package analyzer"
+arch=('any')
+url="http://projects.archlinux.org/namcap.git/"
+license=('GPL')
+depends=('python' 'pyalpm>=0.5' 'licenses'
+ 'binutils' 'elfutils' 'python-pyelftools')
+makedepends=('python-setuptools')
+source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('5fb93f267766aaf9b399387af374f624849caf25')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ sed -i 's|usr/lib/libalpm.so.8|usr/lib/libalpm.so.9|' Namcap/tests/package/test_sodepends.py
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \
+ PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \
+ python setup.py test
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python setup.py install --root=${pkgdir}
+}
+
More information about the arch-commits
mailing list