summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 593b8f6764c0be87b8c5534cf2696c403aad0307 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Robert Kubosz <kubosz.robert@gmail.com>

pkgbase=python-abjad
pkgname=(python-abjad python2-abjad)
pkgver=2.21
pkgrel=2
pkgdesc="Tool for formalized music score control."
arch=("any")
url="https://github.com/Abjad/abjad"
license=("GPL 3")
depends=("lilypond")
makedepends=("python-setuptools" "python2-setuptools")
conflicts=("python2-abjad")
optdepends=(
    "graphviz: to create rhythm-trees graphs and other tree structures"
    "fluidsynth: to play generated MIDI files (instead of timidity++)"
    "timidity++: to play generated MIDI files (instead of fluidsynth)"
    "jupyter: browser-based interactive notebook for programming"
    "ipython: an enhanced Python console"
    "python-ipywidgets: IPython widgets for Jupyter notebook"
    "python-pypdf2: PDF toolkit"
    )
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=("5fc1fc977b9521d4b9ce1aa8bdea1aa07306e313bd03feea15e8c680b4f27c5b")

prepare () {
    cp -rup $srcdir/abjad-$pkgver $srcdir/abjad-$pkgver-python2
}

build() {
    cd $srcdir/abjad-$pkgver
    python setup.py build

    cd $srcdir/abjad-$pkgver-python2
    python2 setup.py build
}

package_python-abjad() {
    depends+=(
        "python"
        "python-ply"
        "python-six"
        )
    conflicts=("python2-abjad")

    cd $srcdir/abjad-$pkgver
    python setup.py install --root="$pkgdir/" --optimize=1
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

package_python2-abjad() {
    depends+=(
        "python2"
        "python2-ply"
        "python2-six"
        "python2-mock"
        "python2-funcsigs"
        "python2-enum34"
        "python2-pathlib2"
        "python2-scandir"
        )
    conflicts=("python-abjad")
    provides=("python-abjad")

    cd $srcdir/abjad-$pkgver-python2
    python2 setup.py install --root="$pkgdir/" --optimize=1
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}