summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2bd4b9747193c494a10add6e3f776beac4a4d0d (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
# Contributor: Christopher Arndt <chris@chrisarndt.de>
# Contributor: Luis Pablo Gasparotto <lpgasparotto at gmail dot com>
# Contributor: Phillip Fynan <pfynan@gmail.com>
# Maintainer: Peter Sutton <peter@foxdogstudios.com>

_pkgver_year=2019
_pkgver_month=08
_pkgver_day=11

pkgname=abcmidi
pkgver="${_pkgver_year}${_pkgver_month}${_pkgver_day}"
pkgrel=2
pkgdesc="A set of tools for converting ABC files to MIDI files and vice versa, as well as other small utilities"
url="https://ifdo.ca/~seymour/runabc/top.html"
license=('GPL')
depends=()
makedepends=()
changelog=ChangeLog
source=("https://ifdo.ca/~seymour/runabc/abcMIDI-${_pkgver_year}.${_pkgver_month}.${_pkgver_day}.zip")
arch=(x86_64)
sha256sums=('e59d790174f4aa77d49715fca820d9fb9bc084221ad06342c873ef12f2389595')

build() {
    cd "$srcdir"/abcmidi
    ./configure
    make
}

package() {
    cd "$srcdir"/abcmidi*
    mkdir -p "$pkgdir"/usr/bin

    make prefix="$pkgdir"/usr install

    # Install programming documentation to docdir
    install -m 755 -d "$pkgdir"/usr/share/doc/$pkgname/programming
    install -m 644 doc/programming/*.txt doc/programming/*.abc \
                   "$pkgdir"/usr/share/doc/$pkgname/programming

    # Install example ABC files to docdir
    install -m 755 -d "$pkgdir"/usr/share/doc/$pkgname/samples
    install -m 644 samples/*.abc "$pkgdir"/usr/share/doc/$pkgname/samples
}