blob: 8d260d2938f5bf0c479834cb00e63c9099c4c4f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Jenya Sovetkin <e.sovetkin at gmail com>
pkgname=qasm2circ
pkgver=1.4
pkgrel=5
pkgdesc="Quantum circuit viewer"
arch=(any)
license=('unknown')
url="http://www.media.mit.edu/quanta/qasm2circ/"
depends=('python2')
optdepends=('ghostscript' 'netpbm' 'texlive-most')
source=('http://www.media.mit.edu/quanta/qasm2circ/qasm2circ-v1.4.tgz'
'qasm2tex.patch'
'qasm2pdf.patch'
'qasm2png.patch')
md5sums=('3621c141703beead2e5a8b007561bf75'
'6c12a341aca1c1613ebd4c58e306ac44'
'8df8173de8761aba84dc3c44d8013d5c'
'f6adb71b4a8ba1dfcd4572eee5a65c44')
prepare() {
cd "$pkgname-v$pkgver"
patch -p1 -i "$srcdir/qasm2tex.patch"
patch -p1 -i "$srcdir/qasm2pdf.patch"
patch -p1 -i "$srcdir/qasm2png.patch"
}
package() {
cd "$pkgname-v$pkgver"
install -Dm 755 qasm2tex.py "${pkgdir}/usr/bin/qasm2tex"
install -Dm 755 qasm2pdf "${pkgdir}/usr/bin/qasm2pdf"
install -Dm 644 xyqcirc.tex "${pkgdir}/usr/share/qasm2circ/xyqcirc.tex"
install -Dm 644 meter.epsf "${pkgdir}/usr/share/qasm2circ/meter.epsf"
install -Dm 644 README "${pkgdir}/usr/share/qasm2circ/README"
## I didn't manage to make it work yet
# install -Dm 755 qasm2png "${pkgdir}/usr/bin/qasm2png"
}
|