summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cf934f05526a1c2d6fc8f68cec648bc148ffdb4 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=cuse
pkgver=0.5
pkgrel=2
pkgdesc='MIDI sequencer for the terminal'
arch=('x86_64')
url='https://pi4.informatik.uni-mannheim.de/~haensel/cuse/index_en.html'
license=('GPL2')
depends=('libcdk' 'ncurses')
source=("$pkgname-$pkgver.tar.gz::http://pi4.informatik.uni-mannheim.de/~haensel/$pkgname/files/$pkgname-$pkgver-src.tar.gz")
sha256sums=('13461c78a4be80f76dc0217f30f92351813788134b38dbf5eaf98e0a158c57a2')

prepare() {
  cd "$pkgname-$pkgver"

  # the latest version of libcdk moves cdk.h directly to /usr/include
  sed -i 's:cdk/cdk.h:cdk.h:g' configure src/CuSE.cxx src/sequencer.h

  # menulist must be const in order to compile
  sed 's:static char \*menulist:const static char \*menulist:' -i src/CuSE.cxx
}

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr CXXFLAGS="${CXXFLAGS} -w -fpermissive"
  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: