summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf58c04da49dc5ffb099cc8d4a268348c7a70703 (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
# Maintainer: Philipp √úberbacher <murks at lavabit dot com>
pkgname=a2jmidid-git
pkgver=20171104.7656afa
pkgrel=1
pkgdesc="Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system."
arch=('i686' 'x86_64')
url="http://home.gna.org/a2jmidid/"
license=('GPL')
depends=('jack' 'dbus' 'python2')
makedepends=('git')
conflicts=('a2jmidid')
provides=('a2jmidid')
install=${pkgname}.install

_gitroot="git://repo.or.cz/a2jmidid.git"
_gitname="a2jmidid"

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
  cd "${srcdir}"
  msg "Connecting to GIT server...."

  if [ -d ${_gitname} ] ; then
    cd ${_gitname} && git pull origin
    msg "The local files are updated."
  else
    git clone ${_gitroot} ${_gitname}
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "${srcdir}/${_gitname}-build"
  git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  cd "${srcdir}/${_gitname}-build"

  #
  # BUILD HERE
  #
  
  sed -i 's|python|python2|' a2j_control
  python2 ./waf configure --prefix=/usr
  python2 ./waf
}

package() {
  cd "${srcdir}/${_gitname}-build"

  python2 ./waf install --destdir=${pkgdir}

  install -Dm444 README ${pkgdir}/usr/share/a2jmidid/README
}