Oh - and please also add to the PKGBUILD:
optdepends=('inkscape: for viewing the generated graph')
"svg" is the default format and inkscape makes a convenient viewer.
Search Criteria
Package Details: codecgraph 20120114-1
Package Actions
| Package Base: | codecgraph |
|---|---|
| Description: | A tool to generate a graph based on the ALSA description of a HDA codec |
| Upstream URL: | http://helllabs.org/codecgraph/ |
| Category: | multimedia |
| Licenses: | |
| Submitter: | dante4d |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 1 |
| First Submitted: | 2008-09-12 18:11 |
| Last Updated: | 2012-07-28 14:22 |
Dependencies (1)
Required by (0)
Sources
Latest Comments
Comment by thx1138
Comment by thx1138
Please update PKGBUILD, patch codecgraph.py for python version 3, and show python dependency in the AUR:
---------------
PKGBUILD
pkgname=codecgraph
pkgver=20120114
pkgrel=2
pkgdesc="A tool to generate a graph based on the ALSA description of an HDA codec"
arch=('any')
url="http://helllabs.org/codecgraph/"
license=('GPL2')
depends=('graphviz' 'python')
conflicts=('codecgraph-git')
source=("http://helllabs.org/codecgraph/$pkgname-$pkgver.tar.gz"
"$pkgname-$pkgver.patch")
md5sums=('30bb1afeda28b7e9b7f36e3b5b98a869'
'SKIP')
prepare() {
cd "$pkgname-$pkgver"
patch -i "$srcdir/$pkgname-$pkgver.patch"
}
package() {
cd "$pkgname-$pkgver"
env PREFIX=/usr make DESTDIR="$pkgdir/" install -e
}
--------------
codecgraph-20120114.patch
--- codecgraph.py.orig 2012-01-14 18:55:19.000000000 -0700
+++ codecgraph.py 2015-04-19 23:34:35.713552980 -0600
@@ -50,7 +50,7 @@
yield parse_item(linelvl, lines)
def coloravg(a, b, v):
- r = tuple([int(a[i]*(1-v) + b[i]*v) for i in 0,1,2])
+ r = tuple([int(a[i]*(1-v) + b[i]*v) for i in [0,1,2]])
return r
def formatcolor(c):
@@ -66,7 +66,7 @@
def set_values(self, values):
self.values = values
self.gainvalues = [v & 0x7f for v in values]
- self.mutevalues = [(v & 0x80) <> 0 for v in values]
+ self.mutevalues = [(v & 0x80) != 0 for v in values]
def color(self):
if True in self.mutevalues:
@@ -287,7 +287,7 @@
def label(self):
r = '0x%02x' % (self.nid)
- print '// %r' % (self.fields)
+ print ('// %r' % (self.fields))
pdef = self.fields.get('Pin Default')
if pdef:
pdef,subdirs = pdef
@@ -474,11 +474,11 @@
i.new_output(n.nid)
def dump(self):
- print "Codec: %s" % (self.fields['Codec'])
- print "Nodes: %d" % (len(self.nodes))
+ print ("Codec: %s" % (self.fields['Codec']))
+ print ("Nodes: %d" % (len(self.nodes)))
for n in self.nodes.values():
- print "Node: 0x%02x" % (n.nid),
- print " %d conns" % (n.num_inputs)
+ print ("Node: 0x%02x" % (n.nid), end=" ")
+ print (" %d conns" % (n.num_inputs))
def dump_graph(self, f):
f.write('digraph {\n')
--------------------
You might want to regenerate the diff file and run "updpkgsums" on the PKGBUILD to get the md5sum for the diff file. The proper diff file lines are suppose to begin with tabs, not spaces. Or "-l" could be added to the patch command.
Comment by dante4d
bump to 20120104