summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff4852ad4d6394701e5c51a64ddbaabb1761b801 (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
# Maintainer: aggraef@gmail.com
pkgname=inscore-git
pkgver=2669.20c4660
pkgrel=2
pkgdesc="Grame's INScore: interactive augmented music scores (git version)"
arch=('x86_64' 'i686')
url="http://inscore.sourceforge.net/"
license=('LGPL')
depends=('qt5-base' 'qt5-declarative' 'qt5-imageformats' 'qt5-multimedia' 'qt5-svg'
	 'qt5-tools' 'qt5-websockets' 'guidolib')
# Optional dependencies; you need to install all of these beforehand in order
# to get a complete feature set.
optdepends=('libmusicxml: MusicXML support'
	    'libmicrohttpd: HTTP server support'
	    'faust2-git: Faust programming support'
	    'lua: Lua programming support (deprecated)')
makedepends=('cmake')
provides=('inscore')
conflicts=('inscore')
install="$pkgname.install"
source=("$pkgname::git+git://git.code.sf.net/p/inscore/code#branch=dev")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd "$srcdir/$pkgname/build"
    make
}

package() {
    cd "$srcdir/$pkgname"
    # binaries
    install -d "$pkgdir/usr/bin"
    cp build/linux/inscoreviewer "$pkgdir/usr/bin"
    # libraries
    install -d "$pkgdir/usr/lib"
    cp -a build/linux/libINScore.* "$pkgdir/usr/lib"
    # desktop files and icons
    install -d "$pkgdir/usr/share"
    cp -R package/debian/usr/share/applications package/debian/usr/share/icons "$pkgdir/usr/share"
    # docs and examples
    install -d "$pkgdir/usr/share/inscore"
    install -Dm644 package/readme.txt src/changelog.txt "$pkgdir/usr/share/inscore"
    install -d "$pkgdir/usr/share/inscore/doc"
    install -Dm644 package/doc/*.pdf "$pkgdir/usr/share/inscore/doc"
    cp -R package/doc/html "$pkgdir/usr/share/inscore/doc"
    install -d "$pkgdir/usr/share/inscore/samples"
    # XXXFIXME: this also copies the obsolete and private folders, maybe we
    # should get rid of these?
    cp -R scripts/* "$pkgdir/usr/share/inscore/samples"
}