summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5296b575e2f9edc613b0a22483a01d782ed45bea (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
# Maintainer: aggraef@gmail.com
pkgname=midizap-git
pkgver=0.9.r0.gdc62671
pkgrel=1
pkgdesc="control your multimedia applications with MIDI (git version)"
arch=('x86_64' 'i686')
url="https://github.com/agraef/midizap"
license=('GPL')
depends=('libxtst' 'jack')
provides=('midizap')
conflicts=('midizap')
source=("$pkgname::git+https://github.com/agraef/midizap.git")
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$pkgname"
    make
}

package() {
    cd "$pkgname"
    make install prefix=/usr elispdir=/usr/share/emacs/site-lisp DESTDIR="$pkgdir"
    install -d "$pkgdir/usr/share/doc/$pkgname"
    install -m644 README.md LICENSE  "$pkgdir/usr/share/doc/$pkgname"
}